BIO failure

2005-02-28 Thread Vijayakumar Kothandaraman
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,

SSL_CTX_load_verify_locations

2005-02-16 Thread Vijayakumar Kothandaraman
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

SSL_CTX_load_verify_locations

2005-02-15 Thread Vijayakumar Kothandaraman
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:

BIO failure with fd's

2005-02-11 Thread Vijayakumar Kothandaraman
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

OpenSSL With NO_STDIO

2005-02-08 Thread Vijayakumar Kothandaraman
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

2005-02-08 Thread Vijayakumar Kothandaraman
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