[Bug 52923] New: wininet:http Querying the security certificate fails on Windows with a UTF-8 codepage

WineHQ Bugzilla wine-bugs at winehq.org
Thu Apr 28 12:11:28 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52923

            Bug ID: 52923
           Summary: wininet:http Querying the security certificate fails
                    on Windows with a UTF-8 codepage
           Product: Wine
           Version: unspecified
          Hardware: x86-64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: wininet
          Assignee: wine-bugs at winehq.org
          Reporter: fgouget at codeweavers.com

Querying the security certificate fails in wininet:http on Windows with a UTF-8
codepage (w10pro64-hi-u8). The failures fall into three categories:

http.c:6887: Test failed: expected secure flag to be set
http.c:6894: Test failed: InternetQueryOption failed: 12019
http.c:6904: Test failed: InternetQueryOption failed: 12016
http.c:6910: Test failed: InternetQueryOption failed: 12016

In test_secure_connection()
-> These happen are caused by urlmon:url as described in bug 51227 though the
12019 error (ERROR_INTERNET_INCORRECT_HANDLE_STATE) may be UTF-8-specific.


http.c:6933: Test failed: InternetQueryOption failed: 12016
http.c:6938: Test failed: InternetQueryOption failed: 12016
http.c:6941: Test failed: expected same string

In test_secure_connection()
-> Bug 51227 says these are caused by urlmon:url but they also happen when
wininet:http is run all alone on w10pro64-hi-u8 (and not on w10pro64-hi).


http.c:6653: Test failed: InternetQueryOption failed: 12016
http.c:6654: Test failed: unexpected size: 0
http.c:6660: Test failed: InternetQueryOption failed: 12016
http.c:6661: Test failed: unexpected size: 0
http.c:6667: Test failed: InternetQueryOption failed: 12016

In test_security_flags()
-> These are totally specific to UTF-8.

https://test.winehq.org/data/patterns.html#wininet:http


Both the Unicode and ANSI versions of InternetQueryOption() fail but only when
given INTERNET_OPTION_SECURITY_CERTIFICATE, not with
INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT.

And this is really specific to the UTF-8 codepage: there is no failure when
wininet:http is run on its own in the regular Hindi locale.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list