use

   err = ERR_get_error();

to get error no
   and use ERR_string(ec)  to stringify

On 8/30/12, Mithun Kumar <mithunsi...@gmail.com> wrote:
> Also when i use s_client tool it just hangs with following output. Any
> input on how to get full handshake dump?
>
>
> *vm-soniclx13(misingh): openssl s_client -connect NC-WIN2008X64:1433
> **-state
> -debug -msg***
>
> *CONNECTED(00000003)*
>
> *SSL_connect:before/connect initialization*
>
> *write to 09050898 [090508E0] (142 bytes => 142 (0x8E))*
>
> *0000 - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00   ......c... ..9..*
>
> *0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0   8..5............*
>
> *0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00   ..3..2../.....f.*
>
> *0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00   .............c..*
>
> *0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40   b..a...........@*
>
> *0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00   ..e..d..`.......*
>
> *0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 c4 aa   ................*
>
> *0070 - 12 f9 31 f4 10 71 08 bf-7f 5a 81 7e ba 46 50 02   ..1..q...Z.~.FP.*
>
> *0080 - 4b 69 5c c3 8d c3 0c af-e9 37 fa 80 3f e2         Ki\......7..?.*
>
> *>>> SSL 2.0 [length 008c], CLIENT-HELLO*
>
> *    01 03 01 00 63 00 00 00 20 00 00 39 00 00 38 00*
>
> *    00 35 00 00 16 00 00 13 00 00 0a 07 00 c0 00 00*
>
> *    33 00 00 32 00 00 2f 03 00 80 00 00 66 00 00 05*
>
> *    00 00 04 01 00 80 08 00 80 00 00 63 00 00 62 00*
>
> *    00 61 00 00 15 00 00 12 00 00 09 06 00 40 00 00*
>
> *    65 00 00 64 00 00 60 00 00 14 00 00 11 00 00 08*
>
> *    00 00 06 04 00 80 00 00 03 02 00 80 c4 aa 12 f9*
>
> *    31 f4 10 71 08 bf 7f 5a 81 7e ba 46 50 02 4b 69*
>
> *    5c c3 8d c3 0c af e9 37 fa 80 3f e2*
>
> *SSL_connect:SSLv2/v3 write client hello A*
>
>
> Thanks in advance
> mithun
>
>
> On Thu, Aug 30, 2012 at 11:31 AM, Mithun Kumar
> <mithunsi...@gmail.com>wrote:
>
>> Hello All,
>>
>> I am getting some errors causing SSL handshake to fail. Is there any way
>> by which i can enable logging in our OpenSSL libraries?
>>
>> -mithun
>>
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to