isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 2648ef578fde5a02f66a434689c5cd16fc837667
parent e054c575ead9d5b640ef6987f16691cb9e71ede9
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sat, 21 May 2016 13:08:09 +0200

fix server certificate validation error reporting

use the right function to decode the error code.

found by Andrés Ramírez <sunshavi@fastmail.fm>.

Diffstat:
Msrc/socket.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/socket.c b/src/socket.c @@ -178,7 +178,7 @@ verify_cert_host( const server_conf_t *conf, conn_t *sock ) err = SSL_get_verify_result( sock->ssl ); if (err != X509_V_OK) { - error( "SSL error connecting %s: %s\n", sock->name, ERR_error_string( err, NULL ) ); + error( "SSL error connecting %s: %s\n", sock->name, X509_verify_cert_error_string( err ) ); return -1; }