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
a5facc9b
Commit
a5facc9b
authored
Dec 04, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use sk_ functions rather than accessing an OpenSSL stack type directly.
parent
24b43794
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
net.c
dlls/winhttp/net.c
+6
-2
No files found.
dlls/winhttp/net.c
View file @
a5facc9b
...
...
@@ -124,6 +124,8 @@ MAKE_FUNCPTR( ERR_get_error );
MAKE_FUNCPTR
(
ERR_error_string
);
MAKE_FUNCPTR
(
X509_STORE_CTX_get_ex_data
);
MAKE_FUNCPTR
(
i2d_X509
);
MAKE_FUNCPTR
(
sk_value
);
MAKE_FUNCPTR
(
sk_num
);
#undef MAKE_FUNCPTR
static
CRITICAL_SECTION
*
ssl_locks
;
...
...
@@ -339,11 +341,11 @@ static int netconn_secure_verify( int preverify_ok, X509_STORE_CTX *ctx )
PCCERT_CONTEXT
endCert
=
NULL
;
ret
=
TRUE
;
for
(
i
=
0
;
ret
&&
i
<
ctx
->
chain
->
num
;
i
++
)
for
(
i
=
0
;
ret
&&
i
<
psk_num
((
struct
stack_st
*
)
ctx
->
chain
)
;
i
++
)
{
PCCERT_CONTEXT
context
;
cert
=
(
X509
*
)
ctx
->
chain
->
data
[
i
]
;
cert
=
(
X509
*
)
psk_value
((
struct
stack_st
*
)
ctx
->
chain
,
i
)
;
if
((
context
=
X509_to_cert_context
(
cert
)))
{
if
(
i
==
0
)
...
...
@@ -441,6 +443,8 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
LOAD_FUNCPTR
(
ERR_error_string
);
LOAD_FUNCPTR
(
X509_STORE_CTX_get_ex_data
);
LOAD_FUNCPTR
(
i2d_X509
);
LOAD_FUNCPTR
(
sk_value
);
LOAD_FUNCPTR
(
sk_num
);
#undef LOAD_FUNCPTR
pSSL_library_init
();
...
...
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