Fix compatibility with OpenSSL <1.0.0.

Refs #3657
This commit is contained in:
Gunnar Beutner 2013-11-13 10:36:57 +01:00
parent a5e3c70bcc
commit f5f8de8137
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ void AddCRLToSSLContext(const shared_ptr<SSL_CTX>& context, const String& crlPat
X509_VERIFY_PARAM *param = X509_VERIFY_PARAM_new(); X509_VERIFY_PARAM *param = X509_VERIFY_PARAM_new();
X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_CRL_CHECK); 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); X509_VERIFY_PARAM_free(param);
} }