winhttp/tests: Fix test failure caused by expired client certificate.

This commit is contained in:
Hans Leidekker 2022-09-21 16:19:25 +02:00 committed by Alexandre Julliard
parent 1120a1cb29
commit 89225483fe

View file

@ -5603,8 +5603,12 @@ static void test_client_cert_authentication(void)
ret = WinHttpSendRequest( req, NULL, 0, NULL, 0, 0, 0 );
ok( ret, "failed to send request %lu\n", GetLastError() );
SetLastError( 0xdeadbeef );
ret = WinHttpReceiveResponse( req, NULL );
ok( ret, "failed to receive response %lu\n", GetLastError() );
todo_wine {
ok( !ret, "unexpected success\n" );
ok( GetLastError() == SEC_E_CERT_EXPIRED, "got %lu\n", GetLastError() );
}
CertFreeCertificateContext( cert );
CertCloseStore( store, 0 );