wininet: Set SECURITY_FLAG_SECURRE in NETCON_secure_connect.
This commit is contained in:
parent
59a0ab54cb
commit
90ec92dfd1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue