From: Hans Leidekker hans@codeweavers.com
--- dlls/winhttp/tests/winhttp.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c index 89497c9ebd7..7d89277abe1 100644 --- a/dlls/winhttp/tests/winhttp.c +++ b/dlls/winhttp/tests/winhttp.c @@ -6053,7 +6053,6 @@ static const BYTE pfxdata[] = static void test_client_cert_authentication(void) { HINTERNET ses, req, con; - DWORD protocols; BOOL ret; CRYPT_DATA_BLOB pfx; HCERTSTORE store; @@ -6062,16 +6061,6 @@ static void test_client_cert_authentication(void) ses = WinHttpOpen( L"winetest", WINHTTP_ACCESS_TYPE_NO_PROXY, NULL, NULL, 0 ); ok( ses != NULL, "failed to open session %lu\n", GetLastError() );
- protocols = WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1; - ret = WinHttpSetOption( ses, WINHTTP_OPTION_SECURE_PROTOCOLS, &protocols, sizeof(protocols) ); - if (!ret && GetLastError() == ERROR_INVALID_PARAMETER) /* vista */ - { - win_skip( "can't set secure protocols\n" ); - WinHttpCloseHandle( ses ); - return; - } - ok( ret, "failed to set protocols %lu\n", GetLastError() ); - con = WinHttpConnect( ses, L"test.winehq.org", 443, 0 ); ok( con != NULL, "failed to open a connection %lu\n", GetLastError() );
@@ -6104,7 +6093,7 @@ static void test_client_cert_authentication(void) ret = WinHttpReceiveResponse( req, NULL ); todo_wine { ok( !ret, "unexpected success\n" ); - ok( GetLastError() == SEC_E_CERT_EXPIRED, "got %lu\n", GetLastError() ); + ok( GetLastError() == ERROR_WINHTTP_SECURE_FAILURE, "got %lu\n", GetLastError() ); }
CertFreeCertificateContext( cert );