From 4df0a33063960b1ab660a1d8ceb3211766627b78 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 13 Jun 2019 18:11:44 +0200 Subject: Add STARTTLS support --- openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openssl.c') 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); -- cgit v1.2.3-55-g7522