aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 2 insertions, 0 deletions
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);