wininet: Set SECURITY_FLAG_SECURRE in NETCON_secure_connect.

This commit is contained in:
Jacek Caban 2012-05-25 16:34:59 +02:00 committed by Alexandre Julliard
parent 59a0ab54cb
commit 90ec92dfd1
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;