From f5f8de8137109a970f297b2e8da1d6ce94b9a590 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 13 Nov 2013 10:36:57 +0100 Subject: [PATCH] Fix compatibility with OpenSSL <1.0.0. Refs #3657 --- lib/base/tlsutility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/tlsutility.cpp b/lib/base/tlsutility.cpp index 52efeb3f7..c552c0245 100644 --- a/lib/base/tlsutility.cpp +++ b/lib/base/tlsutility.cpp @@ -126,7 +126,7 @@ void AddCRLToSSLContext(const shared_ptr& context, const String& crlPat X509_VERIFY_PARAM *param = X509_VERIFY_PARAM_new(); X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_CRL_CHECK); - SSL_CTX_set1_param(context.get(), param); + X509_STORE_set1_param(x509_store, param); X509_VERIFY_PARAM_free(param); }