I have downloaded OpenSSL 1.0.1c. My application is a Server Application running on Windows XP compiled using VS2008. When i used SSL_Accept function then it fails. SSL_get_error gives an value of 5. ERR_get_error gives a string error:00000000:lib(0):func(0):reason(0) I have called SSL_load_error_string called after I initialize SSL_libary_init. Similar Code use to work with 1.0.0a version of library, after update it started to fail. If i link the code to old library again it works, but with this new one it keeps on failing. So the application code seems correct.
Seems like i am missing some flag. Unfortunately, i have lost the old version during system update and i no longer have that available to compare. Here is a little more information incase it helps. I am using CAPI engine, loaded Private Key is saying it is Type 6 (not sure what it means), but thought like its failing in handshake so could related. Any thoughts?