urlmon: Added support for more error codes in handle_http_error.
This commit is contained in:
parent
f5cbc9f3f2
commit
0d82c9a9c8
|
@ -103,6 +103,11 @@ static inline HRESULT internet_error_to_hres(DWORD error)
|
|||
case ERROR_INTERNET_SEC_CERT_CN_INVALID:
|
||||
case ERROR_INTERNET_INVALID_CA:
|
||||
case ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED:
|
||||
case ERROR_INTERNET_SEC_INVALID_CERT:
|
||||
case ERROR_INTERNET_SEC_CERT_ERRORS:
|
||||
case ERROR_INTERNET_SEC_CERT_REV_FAILED:
|
||||
case ERROR_INTERNET_SEC_CERT_NO_REV:
|
||||
case ERROR_INTERNET_SEC_CERT_REVOKED:
|
||||
return INET_E_INVALID_CERTIFICATE;
|
||||
case ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR:
|
||||
case ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR:
|
||||
|
@ -129,9 +134,14 @@ static HRESULT handle_http_error(HttpProtocol *This, DWORD error)
|
|||
case ERROR_INTERNET_SEC_CERT_CN_INVALID:
|
||||
case ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR:
|
||||
case ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR:
|
||||
case ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION:
|
||||
case ERROR_INTERNET_INVALID_CA:
|
||||
case ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED:
|
||||
case ERROR_INTERNET_SEC_INVALID_CERT:
|
||||
case ERROR_INTERNET_SEC_CERT_ERRORS:
|
||||
case ERROR_INTERNET_SEC_CERT_REV_FAILED:
|
||||
case ERROR_INTERNET_SEC_CERT_NO_REV:
|
||||
case ERROR_INTERNET_SEC_CERT_REVOKED:
|
||||
case ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION:
|
||||
security_problem = TRUE;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue