Ilia Mirkin : crypt32/tests: Additional test for skipping unknown CAs.
Alexandre Julliard
julliard at winehq.org
Fri Feb 7 15:41:07 CST 2020
Module: wine
Branch: master
Commit: 8ca8fa87fae0e2ba041bd5ba97325134d004758a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8ca8fa87fae0e2ba041bd5ba97325134d004758a
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Thu Jan 23 20:01:25 2020 -0500
crypt32/tests: Additional test for skipping unknown CAs.
This is already tested by setting a flag in the ssl policy parameters,
but apparently the flag in base policy parameters also needs to be
respected. Tested on Win7.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/crypt32/tests/chain.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index e2a7633526..1bf78b084d 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -4743,6 +4743,11 @@ static void check_ssl_policy(void)
CHECK_CHAIN_POLICY_STATUS(CERT_CHAIN_POLICY_SSL, NULL,
ignoredUnknownCAPolicyCheck, &oct2007, &policyPara);
sslPolicyPara.fdwChecks = 0;
+ /* And again, but specifying the ignore in dwFlags */
+ policyPara.dwFlags = CERT_CHAIN_POLICY_ALLOW_UNKNOWN_CA_FLAG;
+ CHECK_CHAIN_POLICY_STATUS(CERT_CHAIN_POLICY_SSL, NULL,
+ ignoredUnknownCAPolicyCheck, &oct2007, &policyPara);
+ policyPara.dwFlags = 0;
/* And again, but checking the Google chain at a bad date */
sslPolicyPara.pwszServerName = google_dot_com;
CHECK_CHAIN_POLICY_STATUS(CERT_CHAIN_POLICY_SSL, NULL,
More information about the wine-cvs
mailing list