wininet: Secure flag is set in the request, not in the session.
This commit is contained in:
parent
948173b7f4
commit
80545ef966
|
@ -1690,7 +1690,6 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
|
||||||
|
|
||||||
case INTERNET_OPTION_SECURITY_FLAGS:
|
case INTERNET_OPTION_SECURITY_FLAGS:
|
||||||
{
|
{
|
||||||
http_session_t *lpwhs = req->lpHttpSession;
|
|
||||||
DWORD flags;
|
DWORD flags;
|
||||||
int bits;
|
int bits;
|
||||||
|
|
||||||
|
@ -1699,7 +1698,7 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
|
||||||
|
|
||||||
*size = sizeof(DWORD);
|
*size = sizeof(DWORD);
|
||||||
flags = 0;
|
flags = 0;
|
||||||
if (lpwhs->hdr.dwFlags & INTERNET_FLAG_SECURE)
|
if (req->hdr.dwFlags & INTERNET_FLAG_SECURE)
|
||||||
flags |= SECURITY_FLAG_SECURE;
|
flags |= SECURITY_FLAG_SECURE;
|
||||||
flags |= req->netConnection.security_flags;
|
flags |= req->netConnection.security_flags;
|
||||||
bits = NETCON_GetCipherStrength(&req->netConnection);
|
bits = NETCON_GetCipherStrength(&req->netConnection);
|
||||||
|
|
|
@ -2598,7 +2598,6 @@ static void test_secure_connection(void)
|
||||||
size = sizeof(flags);
|
size = sizeof(flags);
|
||||||
ret = InternetQueryOption(req, INTERNET_OPTION_SECURITY_FLAGS, &flags, &size);
|
ret = InternetQueryOption(req, INTERNET_OPTION_SECURITY_FLAGS, &flags, &size);
|
||||||
ok(ret, "InternetQueryOption failed: %d\n", GetLastError());
|
ok(ret, "InternetQueryOption failed: %d\n", GetLastError());
|
||||||
todo_wine
|
|
||||||
ok(flags & SECURITY_FLAG_SECURE, "expected secure flag to be set\n");
|
ok(flags & SECURITY_FLAG_SECURE, "expected secure flag to be set\n");
|
||||||
|
|
||||||
ret = InternetQueryOptionA(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT,
|
ret = InternetQueryOptionA(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT,
|
||||||
|
@ -2679,7 +2678,6 @@ static void test_secure_connection(void)
|
||||||
size = sizeof(flags);
|
size = sizeof(flags);
|
||||||
ret = InternetQueryOption(req, INTERNET_OPTION_SECURITY_FLAGS, &flags, &size);
|
ret = InternetQueryOption(req, INTERNET_OPTION_SECURITY_FLAGS, &flags, &size);
|
||||||
ok(ret, "InternetQueryOption failed: %d\n", GetLastError());
|
ok(ret, "InternetQueryOption failed: %d\n", GetLastError());
|
||||||
todo_wine
|
|
||||||
ok(flags & SECURITY_FLAG_SECURE, "expected secure flag to be set\n");
|
ok(flags & SECURITY_FLAG_SECURE, "expected secure flag to be set\n");
|
||||||
|
|
||||||
ret = InternetQueryOptionA(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT,
|
ret = InternetQueryOptionA(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT,
|
||||||
|
|
Loading…
Reference in New Issue