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: [email protected]
[mailto:[email protected]] On Behalf Of Dave Thompson
Sent: Thursday, September 06, 2012 4:46 PM
To: [email protected]
Subject: RE: crash when calling ERR_print_errors_fp()

>From: [email protected] 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                    [email protected]
Automated List Manager                           [email protected]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to