From 9c672a9f3f6beab800d85b9ae5cf03a4d9d4f170 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 18 Dec 2006 04:50:33 +0000 Subject: call SSL_CTX_load_verify_locations() also when only certs_file exists. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1432 ee746299-78ed-0310-b773-934348b2243d --- libsylph/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsylph') diff --git a/libsylph/ssl.c b/libsylph/ssl.c index 30e95407..f7fd7022 100644 --- a/libsylph/ssl.c +++ b/libsylph/ssl.c @@ -127,7 +127,7 @@ void ssl_init(void) debug_print(_("SSLv23 not available\n")); } else { debug_print(_("SSLv23 available\n")); - if (certs_dir && + if ((certs_file || certs_dir) && !SSL_CTX_load_verify_locations(ssl_ctx_SSLv23, certs_file, certs_dir)) g_warning("SSLv23 SSL_CTX_load_verify_locations failed.\n"); @@ -138,7 +138,7 @@ void ssl_init(void) debug_print(_("TLSv1 not available\n")); } else { debug_print(_("TLSv1 available\n")); - if (certs_dir && + if ((certs_file || certs_dir) && !SSL_CTX_load_verify_locations(ssl_ctx_TLSv1, certs_file, certs_dir)) g_warning("TLSv1 SSL_CTX_load_verify_locations failed.\n"); -- cgit v1.2.3