Module: wine Branch: master Commit: 89225483fe08810286fa188ea6c0d9e86eb417b1 URL: https://gitlab.winehq.org/wine/wine/-/commit/89225483fe08810286fa188ea6c0d9e...
Author: Hans Leidekker hans@codeweavers.com Date: Wed Sep 21 16:19:25 2022 +0200
winhttp/tests: Fix test failure caused by expired client certificate.
---
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 );