diff options
author | Cameron Cawley <ccawley2011@gmail.com> | 2021-05-06 17:50:31 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-09 00:17:16 +0200 |
commit | 3f25c01fce88f9407398c863467daf83f44c0611 (patch) | |
tree | cae817eb7a3d8edc8afc2c157bce0d2dc9b0f203 | |
parent | f71d3e01ecbfc4fbf8963b0d2fc8643cbe499663 (diff) | |
download | curl-3f25c01fce88f9407398c863467daf83f44c0611.tar.gz |
openssl: remove unneeded cast for CertOpenSystemStore()
Closes #7025
-rw-r--r-- | lib/vtls/openssl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index ded79dc70..1521600dd 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2888,8 +2888,7 @@ static CURLcode ossl_connect_step1(struct Curl_easy *data, if((SSL_CONN_CONFIG(verifypeer) || SSL_CONN_CONFIG(verifyhost)) && (SSL_SET_OPTION(native_ca_store))) { X509_STORE *store = SSL_CTX_get_cert_store(backend->ctx); - HCERTSTORE hStore = CertOpenSystemStore((HCRYPTPROV_LEGACY)NULL, - TEXT("ROOT")); + HCERTSTORE hStore = CertOpenSystemStore(0, TEXT("ROOT")); if(hStore) { PCCERT_CONTEXT pContext = NULL; |