From a4ff6cde5d20398069c65b45e0b8c74ba1e92e16 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 7 Dec 2005 23:46:21 +0000 Subject: Actually set default SSL certificate path if --sslcertpath is unset. Reported by Heino Tiedemann and Rob MacGregor. svn path=/branches/BRANCH_6-3/; revision=4516 --- socket.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 6fade9dd..dbd8ce14 100644 --- a/socket.c +++ b/socket.c @@ -841,6 +841,8 @@ int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char } if (certpath) SSL_CTX_load_verify_locations(_ctx, NULL, certpath); + else + SSL_CTX_set_default_verify_paths(_ctx); _ssl_context[sock] = SSL_new(_ctx); -- cgit v1.2.3