Hans Leidekker : crypt32/tests: Show that PFXImportCertStore doesn' t set CERT_KEY_PROV_INFO_PROP_ID.
Alexandre Julliard
julliard at winehq.org
Thu Feb 7 16:20:56 CST 2019
Module: wine
Branch: master
Commit: cf9b492fec1963cc7e4250faf277dc5fb725cd2e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=cf9b492fec1963cc7e4250faf277dc5fb725cd2e
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Feb 7 14:35:01 2019 +0100
crypt32/tests: Show that PFXImportCertStore doesn't set CERT_KEY_PROV_INFO_PROP_ID.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/crypt32/tests/store.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/crypt32/tests/store.c b/dlls/crypt32/tests/store.c
index f3fb420..b8d0ad6 100644
--- a/dlls/crypt32/tests/store.c
+++ b/dlls/crypt32/tests/store.c
@@ -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 );
}
More information about the wine-cvs
mailing list