wininet: Set SECURITY_FLAG_SECURE when error dialog ignores invalid certificate.

This commit is contained in:
Jacek Caban 2012-06-07 15:41:22 +02:00 committed by Alexandre Julliard
parent b5fec3c033
commit 964e538ba9
1 changed files with 5 additions and 3 deletions

View File

@ -550,9 +550,11 @@ static INT_PTR WINAPI WININET_InvalidCertificateDialog(
flags |= SECURITY_FLAG_IGNORE_CERT_DATE_INVALID;
break;
}
res = InternetSetOptionW( params->req->hdr.hInternet, INTERNET_OPTION_SECURITY_FLAGS, &flags, size );
if(!res)
WARN("InternetSetOption(INTERNET_OPTION_SECURITY_FLAGS) failed.\n");
/* FIXME: Use helper function */
flags |= SECURITY_FLAG_SECURE;
req->security_flags |= flags;
if(req->netconn)
req->netconn->security_flags |= flags;
}
EndDialog( hdlg, res ? ERROR_SUCCESS : ERROR_NOT_SUPPORTED );