[PATCH 3/4] wininet: Combine certificate errors in HTTP_OpenConnection

Piotr Caban piotr.caban at gmail.com
Tue May 18 20:01:10 CDT 2010


Hi,

On 05/19/10 02:01, Juan Lang wrote:
> +            if((lpwhr->hdr.ErrorMask&INTERNET_ERROR_MASK_COMBINED_SEC_CERT)
> &&  (
> +                    res == ERROR_INTERNET_SEC_CERT_DATE_INVALID
> +                    || res == ERROR_INTERNET_INVALID_CA
> +                    || res == ERROR_INTERNET_SEC_CERT_NO_REV
> +                    || res == ERROR_INTERNET_SEC_CERT_REV_FAILED
> +                    || res == ERROR_INTERNET_SEC_CERT_REVOKED
> +                    || res == ERROR_INTERNET_SEC_INVALID_CERT
> +                    || res == ERROR_INTERNET_SEC_CERT_CN_INVALID))
> +                res = ERROR_INTERNET_SEC_CERT_ERRORS;
>
> I'm confused.  Is there evidence that native does the same?  This
I'm not sure which of the errors are combined (and if all of them to the 
same value as is stated in msdn).
> would be surprising to me, given the existence of
> INTERNET_OPTION_SECURITY_FLAGS to mask particular errors.
I guess this flag was used in past, currently IE is probably temporarily 
accepting certificates.
   When are
> you trying to accomplish with this patch?  Tests would certainly help.
Test can't be easily added to wine because we don't have pages to test 
certificate errors on. Thanks to this patch IE7 displays certificate 
validation error page.

I have written a simple test (not to be added to wine) that shows it's 
at least partially correct behavior. This test prints error returned in 
INTERNET_STATUS_REQUEST_COMPLETE callback (you can see the difference on 
WXPPROSP3 machine).
https://testbot.winehq.org/JobDetails.pl?Key=2143&log_204=1#k204

Cheers,
Piotr



More information about the wine-devel mailing list