Try ERR_print_errors_fp(stderr) -- eliminates issues with your file. If that works, then it's your file pointer.
Note Dave's point about flushing the file. Charles -----Original Message----- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dave Thompson Sent: Thursday, September 06, 2012 4:46 PM To: openssl-users@openssl.org Subject: RE: crash when calling ERR_print_errors_fp() >From: owner-openssl-us...@openssl.org On Behalf Of Mithun Kumar >Sent: Thursday, 06 September, 2012 16:29 >When i give file pointer as input to API(ERR_print_errors_fp()) nothing >is getting written to the FILE during a SSL handshake failure. Any >inputs why things are failing. If you are on Windows and app doesn't have OpenSSL_applink, OpenSSL won't (can't) write to the file, but it should give a message on stderr and should not crash. http://www.openssl.org/support/faq.html#PROG2 at the end. On all systems make sure the fp is open (for write) before, and is flushed or closed after. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org