diff options
author | Simon Rettberg | 2019-06-13 18:11:44 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-13 18:11:44 +0200 |
commit | 4df0a33063960b1ab660a1d8ceb3211766627b78 (patch) | |
tree | 316d3c939bd815ea47b9e80a3e006c3d9a8cbde2 /openssl.c | |
parent | tag class CONTEXT_SPECIFIC <-> PRIVATE was swapped (diff) | |
download | ldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.tar.gz ldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.tar.xz ldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.zip |
Add STARTTLS support
Diffstat (limited to 'openssl.c')
-rw-r--r-- | openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |