mingw's wincrypt.h lost many things
so add this to e_capi.c
// andelf
#define CERT_STORE_PROV_SYSTEM_A ((LPCSTR) 9)
#define CERT_STORE_READONLY_FLAG 0x00008000
typedef struct _PUBKEY {
DWORD magic;
DWORD bitlen; // # of bits in modulus
} DHPUBKEY, DSSPUBKEY, KEAPUBKEY, TEKPUBKEY;
WINADVAPI
BOOL
WINAPI CryptEnumProvidersA(
DWORD dwIndex,
DWORD *pdwReserved,
DWORD dwFlags,
DWORD *pdwProvType,
LPSTR pszProvName,
DWORD *pcbProvName);
// end andelf
enjoy your ./Configure mingw && make
没有评论:
发表评论