From: Cameron Cawley Date: Thu, 6 May 2021 16:50:31 +0000 (+0100) Subject: openssl: remove unneeded cast for CertOpenSystemStore() X-Git-Tag: curl-7_77_0~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f25c01fce88f9407398c863467daf83f44c0611;p=thirdparty%2Fcurl.git openssl: remove unneeded cast for CertOpenSystemStore() Closes #7025 --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index ded79dc707..1521600dd5 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;