diff options
author | Fabian Mauchle <fabian.mauchle@switch.ch> | 2017-03-24 11:05:18 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-08-01 17:41:11 +0200 |
commit | 4fa79aa7a6332add75e334178e02737518a0bee7 (patch) | |
tree | 3128bb28cd9d223e47da556a561e84e5cda08cb3 /tlscommon.c | |
parent | 9a565fe0289c55700677e7a6d8446a1de1e77e9e (diff) |
create new cert_store before reloading CAs and CRLs
Conflicts:
ChangeLog
Diffstat (limited to 'tlscommon.c')
-rw-r--r-- | tlscommon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tlscommon.c b/tlscommon.c index 3d27a35..ca0fa83 100644 --- a/tlscommon.c +++ b/tlscommon.c @@ -158,6 +158,7 @@ static int tlsaddcacrl(SSL_CTX *ctx, struct tls *conf) { X509_STORE *x509_s; unsigned long error; + SSL_CTX_set_cert_store(ctx, X509_STORE_new()); if (!SSL_CTX_load_verify_locations(ctx, conf->cacertfile, conf->cacertpath)) { while ((error = ERR_get_error())) debug(DBG_ERR, "SSL: %s", ERR_error_string(error, NULL)); |