diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-12-18 04:50:33 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-12-18 04:50:33 +0000 |
commit | 9c672a9f3f6beab800d85b9ae5cf03a4d9d4f170 (patch) | |
tree | f8c7913edaa89dfb749d029bdf359a5c360f2b8d /libsylph | |
parent | 6231816dd79b92ac476a3b015689a8142583dbdf (diff) |
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
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |