curl detects Vista as part of its global initialization. Use that result
instead of detecting it again in Schannel, to save some cycles and API
calls.
Follow-up to
46e97b10ba917aed55f079b89c1dfe54955a4a62 #16400
Closes #16408
#include "x509asn1.h"
#include "curl_printf.h"
#include "multiif.h"
+#include "system_win32.h"
#include "version_win32.h"
#include "rand.h"
#include "strparse.h"
else
pszPassword[0] = 0;
- if(curlx_verify_windows_version(6, 0, 0, PLATFORM_WINNT,
- VERSION_GREATER_THAN_EQUAL))
+ if(Curl_isVistaOrGreater)
cert_store = PFXImportCertStore(&datablob, pszPassword,
PKCS12_NO_PERSIST_KEY);
else