Commit 90ec92df authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Set SECURITY_FLAG_SECURRE in NETCON_secure_connect.

parent 59a0ab54
......@@ -1999,8 +1999,6 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
*size = sizeof(DWORD);
flags = req->netconn ? req->netconn->security_flags : req->security_flags | req->server->security_flags;
if (req->hdr.dwFlags & INTERNET_FLAG_SECURE)
flags |= SECURITY_FLAG_SECURE;
if(req->netconn) {
int bits = NETCON_GetCipherStrength(req->netconn);
if (bits >= 128)
......
......@@ -729,6 +729,8 @@ DWORD NETCON_secure_connect(netconn_t *connection)
}
connection->ssl_s = ssl_s;
connection->security_flags |= SECURITY_FLAG_SECURE;
connection->server->security_flags = connection->security_flags;
return ERROR_SUCCESS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment