RE: crash when calling ERR_print_errors_fp()

2012-09-06 Thread Dave Thompson
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

RE: crash when calling ERR_print_errors_fp()

2012-09-06 Thread Charles Mills
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

RE: crash when calling ERR_print_errors_fp()

2012-09-06 Thread Jeremy Farrell
Your message suggests to me that you are calling the API and expecting it to cause subsequent errors to be written to the FILE. It doesn't work like that; the messages won't be written to the file during the handshake. The API writes out any messages which are queued up in the internal message

Re: crash when calling ERR_print_errors_fp()

2012-09-06 Thread Mithun Kumar
Thanks All, I am currently on Linux and trying to write to a file after the handshake has failed. But i dont see anything written to a file. using stderr instead of file pointer be of some help? -mithun On Fri, Sep 7, 2012 at 5:58 AM, Jeremy Farrell jeremy.farr...@oracle.comwrote: Your

Re: crash when calling ERR_print_errors_fp()

2012-08-30 Thread Mithun Kumar
i could see following method failing.. uplink.c :19 static void unimplemented (void) { OPENSSL_showfatal (sizeof(TCHAR)==sizeof(char)?%s\n:%S\n,msg); ExitProcess (1);//causing crash } On Thu, Aug 30, 2012 at 3:25 PM, Mithun Kumar mithunsi...@gmail.com wrote: Hello All, I am using the

Re: crash when calling ERR_print_errors_fp()

2012-08-30 Thread Saurabh Pandya
is as simple as below const *errString = ERR_error_string(ERR_get_error(), NULL)); On 8/30/12, Mithun Kumar mithunsi...@gmail.com wrote: Hello All, I am using the function ERR_print_errors_fp() to get the last error in case of any failure. I want to divert the output to file. When ever

Re: crash when calling ERR_print_errors_fp()

2012-08-30 Thread Mithun Kumar
Thanks for the quick reply. I could see that following condition compiler flag is used OPENSSL_USE_APPLINK causing the problem. Any idea why this flag is used? -mithun On Thu, Aug 30, 2012 at 3:58 PM, Saurabh Pandya er.saurabhpan...@gmail.comwrote: is as simple as below const *errString =

Re: crash when calling ERR_print_errors_fp()

2012-08-30 Thread Saurabh Pandya
How do you identified that the dame flag is causing problem On Aug 30, 2012 4:49 PM, Mithun Kumar mithunsi...@gmail.com wrote: Thanks for the quick reply. I could see that following condition compiler flag is used OPENSSL_USE_APPLINK causing the problem. Any idea why this flag is used?

Re: crash when calling ERR_print_errors_fp()

2012-08-30 Thread Mithun Kumar
i am extremely sorry. its BIO_FLAGS_UPLINK flag. On Thu, Aug 30, 2012 at 5:24 PM, Saurabh Pandya er.saurabhpan...@gmail.comwrote: How do you identified that the dame flag is causing problem On Aug 30, 2012 4:49 PM, Mithun Kumar mithunsi...@gmail.com wrote: Thanks for the quick reply.

Re: crash when calling ERR_print_errors_fp()

2012-08-30 Thread Mithun Kumar
Its in cryptlib.h #ifdef OPENSSL_USE_APPLINK #define BIO_FLAGS_UPLINK 0x8000 #include ms/uplink.h #endif On Thu, Aug 30, 2012 at 6:00 PM, Mithun Kumar mithunsi...@gmail.com wrote: i am extremely sorry. its BIO_FLAGS_UPLINK flag. On Thu, Aug 30, 2012 at 5:24 PM, Saurabh Pandya

RE: crash when calling ERR_print_errors_fp()

2012-08-30 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Mithun Kumar Sent: Thursday, 30 August, 2012 08:32 cryptlib.h #ifdef OPENSSL_USE_APPLINK #define BIO_FLAGS_UPLINK 0x8000 #include ms/uplink.h #endif On Thu, Aug 30, 2012 at 6:00 PM, Mithun Kumar mithunsi...@gmail.com wrote: i am extremely