mirror of
https://github.com/curl/curl.git
synced 2026-06-09 01:44:17 +03:00
save/restore in the OpenSSL 1.0.2 codepath too
This commit is contained in:
parent
dd44c207f1
commit
c22aae9cc8
1 changed files with 10 additions and 2 deletions
|
|
@ -3691,9 +3691,17 @@ CURLcode Curl_ssl_setup_x509_store(struct Curl_cfilter *cf,
|
|||
struct Curl_easy *data,
|
||||
SSL_CTX *ssl_ctx)
|
||||
{
|
||||
X509_STORE *store = SSL_CTX_get_cert_store(ssl_ctx);
|
||||
CURLcode result;
|
||||
X509_STORE *store;
|
||||
|
||||
return ossl_populate_x509_store(cf, data, store);
|
||||
ERR_set_mark();
|
||||
|
||||
store = SSL_CTX_get_cert_store(ssl_ctx);
|
||||
result = ossl_populate_x509_store(cf, data, store);
|
||||
|
||||
ERR_pop_to_mark();
|
||||
|
||||
return result;
|
||||
}
|
||||
#endif /* HAVE_SSL_X509_STORE_SHARE */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue