> On Mon 31/10/11 4:25 PM , "Akanksha Shukla" akshu...@cisco.com sent: > Hi Michael, > > Thanks for the reply. But I think the issue is not from the C perspective. > As I already mentioned, that if I use fputs to directly write a string to > file, then I am able to do that successfully. But when I try to write the > error code thrown by Bio_do_connect() API, then nothing is getting written > in file and for that I have used the API suggested by Stephen in the forum > (ERR_print_errors_fp(pFile)).
Are you loading the strings? From:http://www.openssl.org/docs/ssl/SSL_library_init.htmlEXAMPLES A typical TLS/SSL application will start with the library initialization, and provide readable error messages. SSL_load_error_strings(); /* readable error messages */ SSL_library_init(); /* initialize library */ Carl ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org