From: Hans Leidekker hans@codeweavers.com
--- dlls/winhttp/tests/winhttp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c index 17720611547..d1dd58fdad4 100644 --- a/dlls/winhttp/tests/winhttp.c +++ b/dlls/winhttp/tests/winhttp.c @@ -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 );