RE: Print SSL errors

2014-08-11 Thread Salz, Rich
Try printing "r2" in your original code. SSL_get_error isn't doing what you think it does; see the docs. -- Principal Security Engineer Akamai Technologies, Cambridge MA IM: rs...@jabber.me Twitter: RichSalz

Re: Print SSL errors

2014-08-11 Thread Marco Bambini
It is 1. -- Marco Bambini http://www.sqlabs.com http://twitter.com/sqlabs http://instagram.com/sqlabs On 11 Aug 2014, at 16:24, Salz, Rich wrote: > What’s the value of err (“%ul”)? > > -- > Principal Security Engineer > Akamai Technologies, Cambridge MA > IM: rs...@jabber.me Twitter: RichS

RE: Print SSL errors

2014-08-11 Thread Salz, Rich
What's the value of err ("%ul")? -- Principal Security Engineer Akamai Technologies, Cambridge MA IM: rs...@jabber.me Twitter: RichSalz

Re: Print SSL errors

2014-08-11 Thread Marco Bambini
err = SSL_get_error(client->ssl, r2); if (err != 0) { char str[2048]; ERR_error_string_n(err, str, sizeof(str)); printf("%s", str); ERR_print_errors_fp (stdout); } The first function produces: error:0001:lib(0):func(0):reas

RE: Print SSL errors

2014-08-11 Thread Salz, Rich
> every time I have an SSL error I try to log useful data using > ERR_error_string_n. Can you post the code with the call? -- Principal Security Engineer Akamai Technologies, Cambridge MA IM: rs...@jabber.me Twitter: RichSalz _