]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: remove unneeded cast for CertOpenSystemStore()
authorCameron Cawley <ccawley2011@gmail.com>
Thu, 6 May 2021 16:50:31 +0000 (17:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 8 May 2021 22:17:16 +0000 (00:17 +0200)
Closes #7025

lib/vtls/openssl.c

index ded79dc707eafd179f272603e719e6213e8e66bf..1521600dd5f6d53ca803d312ae220c48f10b54f7 100644 (file)
@@ -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;