mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 15:17:35 +00:00
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:
parent
f69a1807e8
commit
cf9b492fec
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue