[PATCH] crypt32/tests: Show that PFXImportCertStore doesn't set CERT_KEY_PROV_INFO_PROP_ID.
Hans Leidekker
hans at codeweavers.com
Thu Feb 7 07:35:01 CST 2019
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
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 f3fb420140..b8d0ad6666 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 );
}
--
2.20.1
More information about the wine-devel
mailing list