Commit cf9b492f authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

crypt32/tests: Show that PFXImportCertStore doesn't set CERT_KEY_PROV_INFO_PROP_ID.

parent f69a1807
......@@ -3286,6 +3286,7 @@ static void test_PFXImportCertStore(void)
CRYPT_DATA_BLOB pfx;
const CERT_CONTEXT *cert;
CERT_KEY_CONTEXT key;
CRYPT_KEY_PROV_INFO keyprov;
CERT_INFO *info;
DWORD count, size;
BOOL ret;
......@@ -3323,6 +3324,11 @@ static void test_PFXImportCertStore(void)
ok( key.hCryptProv, "hCryptProv not set\n" );
ok( key.dwKeySpec == AT_KEYEXCHANGE, "got %u\n", key.dwKeySpec );
size = sizeof(keyprov);
SetLastError( 0xdeadbeef );
ret = CertGetCertificateContextProperty( cert, CERT_KEY_PROV_INFO_PROP_ID, &keyprov, &size );
ok( !ret && GetLastError() == CRYPT_E_NOT_FOUND, "got %08x\n", GetLastError() );
CertCloseStore( store, 0 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment