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:00000001:lib(0):func(0):reason(1) while ERR_print_errors_fp prints: 4349079552:error:140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate returned:/SourceCache/OpenSSL098/OpenSSL098-50/src/ssl/s3_srvr.c:2631: -- Marco Bambini http://www.sqlabs.com http://twitter.com/sqlabs http://instagram.com/sqlabs On 11 Aug 2014, at 15:36, Salz, Rich <rs...@akamai.com> wrote: >> 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 > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org