# include <windows.h>
# include <wincrypt.h>
# if defined(__MINGW32__) && !defined(__MINGW64__) && __MINGW32_MAJOR_VERSION <= 3 && __MINGW32_MINOR_VERSION <= 20
-typedef PCCRL_CONTEXT WINAPI(*Type_CertEnumCRLsInStore) (HCERTSTORE
+typedef PCCRL_CONTEXT WINAPI(*CertEnumCRLsInStoreFunc) (HCERTSTORE
hCertStore,
PCCRL_CONTEXT
pPrevCrlContext);
-static Type_CertEnumCRLsInStore Loaded_CertEnumCRLsInStore;
+static CertEnumCRLsInStoreFunc pCertEnumCRLsInStore;
static HMODULE Crypt32_dll;
# else
-# define Loaded_CertEnumCRLsInStore CertEnumCRLsInStore
+# define pCertEnumCRLsInStore CertEnumCRLsInStore
# endif
#else /* _WIN32 */
if (crypto == NULL)
return GNUTLS_E_CRYPTO_INIT_FAILED;
- Loaded_CertEnumCRLsInStore =
- (Type_CertEnumCRLsInStore) GetProcAddress(crypto,
+ pCertEnumCRLsInStore =
+ (CertEnumCRLsInStoreFunc) GetProcAddress(crypto,
"CertEnumCRLsInStore");
- if (Loaded_CertEnumCRLsInStore == NULL) {
+ if (pCertEnumCRLsInStore == NULL) {
FreeLibrary(crypto);
return GNUTLS_E_CRYPTO_INIT_FAILED;
}
return GNUTLS_E_FILE_ERROR;
cert = CertEnumCertificatesInStore(store, NULL);
- crl = Loaded_CertEnumCRLsInStore(store, NULL);
+ crl = pCertEnumCRLsInStore(store, NULL);
while (cert != NULL) {
if (cert->dwCertEncodingType == X509_ASN_ENCODING) {
tl_flags,
tl_vflags);
}
- crl = Loaded_CertEnumCRLsInStore(store, crl);
+ crl = pCertEnumCRLsInStore(store, crl);
}
CertCloseStore(store, 0);
}