summaryrefslogtreecommitdiffstats
path: root/openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl.c')
-rw-r--r--openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl.c b/openssl.c
index 0b64382..7611c0c 100644
--- a/openssl.c
+++ b/openssl.c
@@ -52,7 +52,7 @@ SSL_CTX* ssl_newClientCtx(const char *cabundle)
if (ctx == NULL) ssl_printErrors("newClientCtx: ctx is NULL");
SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2);
SSL_CTX_set_mode(ctx, SSL_MODE_ENABLE_PARTIAL_WRITE); // | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
- if (cabundle != NULL && cabundle[0] != '\0') {
+ if (cabundle != NULL && cabundle[0] != '\0' && strcmp(cabundle, "*") != 0) {
if (SSL_CTX_load_verify_locations(ctx, cabundle, NULL) == 0) {
ssl_printErrors("Loading trusted certs failed");
exit(1);