Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
df976fd5
Commit
df976fd5
authored
May 22, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
May 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Handle ERROR_INTERNET_INVALID_CA security problem in https tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
36ccf6bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
protocol.c
dlls/urlmon/tests/protocol.c
+9
-2
No files found.
dlls/urlmon/tests/protocol.c
View file @
df976fd5
...
...
@@ -246,14 +246,17 @@ static HRESULT WINAPI HttpSecurity_GetWindow(IHttpSecurity* iface, REFGUID rgui
static
HRESULT
WINAPI
HttpSecurity_OnSecurityProblem
(
IHttpSecurity
*
iface
,
DWORD
dwProblem
)
{
trace
(
"Security problem: %u
\n
"
,
dwProblem
);
ok
(
dwProblem
==
ERROR_INTERNET_SEC_CERT_REV_FAILED
,
"Expected ERROR_INTERNET_SEC_CERT_REV_FAILED got %u
\n
"
,
dwProblem
);
win_skip
(
"Security problem: %u
\n
"
,
dwProblem
);
ok
(
dwProblem
==
ERROR_INTERNET_SEC_CERT_REV_FAILED
||
dwProblem
==
ERROR_INTERNET_INVALID_CA
,
"Expected got %u security problem
\n
"
,
dwProblem
);
/* Only retry once */
if
(
security_problem
)
return
E_ABORT
;
security_problem
=
TRUE
;
if
(
dwProblem
==
ERROR_INTERNET_INVALID_CA
)
return
E_ABORT
;
SET_EXPECT
(
BeginningTransaction
);
return
RPC_E_RETRY
;
...
...
@@ -1157,6 +1160,9 @@ static HRESULT WINAPI ProtocolSink_ReportResult(IInternetProtocolSink *iface, HR
{
CHECK_EXPECT
(
ReportResult
);
if
(
security_problem
)
return
S_OK
;
if
(
tested_protocol
==
FTP_TEST
)
ok
(
hrResult
==
E_PENDING
||
hrResult
==
S_OK
,
"hrResult = %08x, expected E_PENDING or S_OK
\n
"
,
hrResult
);
else
...
...
@@ -2625,6 +2631,7 @@ static void init_test(int prot, DWORD flags)
empty_file
=
(
flags
&
TEST_EMPTY
)
!=
0
;
bind_from_cache
=
(
flags
&
TEST_FROMCACHE
)
!=
0
;
file_with_hash
=
FALSE
;
security_problem
=
FALSE
;
bindinfo_options
=
0
;
if
(
flags
&
TEST_DISABLEAUTOREDIRECT
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment