On Tuesday 13 October 2009 08:46:59 am Dmitry Timoshkov wrote: > + ret = pCryptImportKey(provider, (BYTE*)&key_blob, > + sizeof(BLOBHEADER)+sizeof(DWORD)+key_length, > + 0, CRYPT_IPSEC_HMAC_KEY, &hkey); > + ok(ret, "CryptImportKey error %u\n", GetLastError()); > + > + pCryptReleaseContext(provider, 0);
You should clean up the key as well. -Hans