1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

openssl: remove unneeded cast for CertOpenSystemStore()

Closes #7025
This commit is contained in:
Cameron Cawley 2021-05-06 17:50:31 +01:00 committed by Daniel Stenberg
parent f71d3e01ec
commit 3f25c01fce
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;