summaryrefslogtreecommitdiffstats
path: root/openssl.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-13 18:11:44 +0200
committerSimon Rettberg2019-06-13 18:11:44 +0200
commit4df0a33063960b1ab660a1d8ceb3211766627b78 (patch)
tree316d3c939bd815ea47b9e80a3e006c3d9a8cbde2 /openssl.c
parenttag class CONTEXT_SPECIFIC <-> PRIVATE was swapped (diff)
downloadldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.tar.gz
ldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.tar.xz
ldadp-4df0a33063960b1ab660a1d8ceb3211766627b78.zip
Add STARTTLS support
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);