andelf fledna Feather

2010年4月21日星期三

Compile openssl 1.0.0 with mingw-gcc 4.4

the point is:
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

没有评论: