The following code fails on Windows but works perfectly on Solaris.
The failure is PEM_read_bio_X509 return null. FYI, I am trying to avoid
buffered I/O (FILE *) and hence i am using low-level file operation.
Please help.
Vijay
BIO *data;
char buf[1024*4];
memset(buf,
Is there any alternative API for SSL_CTX_load_verify_locations?
SSL_CTX_load_verify_location ends up using STDIO calls and i am trying to avoid
STDIO calls.
I am stuck here and i need yr help to proceed further.
Any help is appreicated.
Thanks
Vijay
-Original Message-
From: [EMAIL
Any alternative API instead of the above call? SSL_CTX_load_verify_location
ends up using STDIO calls and i am trying to avoid STDIO calls.
Any help is appreciated.
Thanks
Vijay
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of David Schwartz
Sent:
Here
is my code snippet:
int fd;
BIO *bio;
fd = open(file, "r" );
bio = BIO_new(BIO_s_fd()
);
BIO_set_fd(bio,fd,
BIO_NOCLOSE);
X509 *x=null;
x= PEM_read_bio_X509(data,
NULL,ctx-default_password_callback,
ctx-default_password_callback_userdata);
PEM_read_bio_X509 call fails and
Has anybody tried compiling OpenSSL with NO_STDIO flag and successfully run
without stdio library ? I don't want to use the stdio library since it does not
recognize File descriptors 256.. Hence i want to avoid stdio library and use
the native OS calls.
Any help is appreciated.
Vijay
SSL_CTX_use_PrivateKey_file inturn uses stdio calls to read the key file. Since
i want to avoid using stdio calls, Is there any other way of getting the key
file to setup the context.
Similarly for SSL_CTX_use_certificate_chain_file.
Any help is appreciated.
Thanks
Vijay