summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Cawley <ccawley2011@gmail.com>2021-05-06 17:50:31 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-05-09 00:17:16 +0200
commit3f25c01fce88f9407398c863467daf83f44c0611 (patch)
treecae817eb7a3d8edc8afc2c157bce0d2dc9b0f203
parentf71d3e01ecbfc4fbf8963b0d2fc8643cbe499663 (diff)
downloadcurl-3f25c01fce88f9407398c863467daf83f44c0611.tar.gz
openssl: remove unneeded cast for CertOpenSystemStore()
Closes #7025
-rw-r--r--lib/vtls/openssl.c3
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;