Add Windows CNG (BCrypt) support to HCrypto EVP API

This commit is contained in:
Luke Howard
2015-02-06 16:26:08 +11:00
parent 49861eb2c5
commit 5023f55208
28 changed files with 1517 additions and 113 deletions

View File

@@ -33,10 +33,25 @@
HINSTANCE _krb5_hInstance = NULL;
#if NTDDI_VERSION >= NTDDI_VISTA
extern BOOL WINAPI
_hc_w32crypto_DllMain(HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved);
#endif
BOOL WINAPI DllMain(HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved)
{
#if NTDDI_VERSION >= NTDDI_VISTA
BOOL ret;
ret = _hc_w32crypto_DllMain(hinstDLL, fdwReason, lpvReserved);
if (!ret)
return ret;
#endif
switch (fdwReason) {
case DLL_PROCESS_ATTACH: