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

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2019-02-07 14:35:01 +01:00 committed by Alexandre Julliard
parent f69a1807e8
commit cf9b492fec
1 changed files with 6 additions and 0 deletions

View File

@ -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 );
}