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
5b4be5d4
Commit
5b4be5d4
authored
Apr 20, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use an accessor function instead of directly accessing the X509_STORE_CTX structure.
parent
cf543565
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
netconnection.c
dlls/wininet/netconnection.c
+5
-2
No files found.
dlls/wininet/netconnection.c
View file @
5b4be5d4
...
@@ -162,6 +162,7 @@ MAKE_FUNCPTR(ERR_free_strings);
...
@@ -162,6 +162,7 @@ MAKE_FUNCPTR(ERR_free_strings);
MAKE_FUNCPTR
(
ERR_get_error
);
MAKE_FUNCPTR
(
ERR_get_error
);
MAKE_FUNCPTR
(
ERR_error_string
);
MAKE_FUNCPTR
(
ERR_error_string
);
MAKE_FUNCPTR
(
X509_STORE_CTX_get_ex_data
);
MAKE_FUNCPTR
(
X509_STORE_CTX_get_ex_data
);
MAKE_FUNCPTR
(
X509_STORE_CTX_get_chain
);
MAKE_FUNCPTR
(
i2d_X509
);
MAKE_FUNCPTR
(
i2d_X509
);
MAKE_FUNCPTR
(
sk_num
);
MAKE_FUNCPTR
(
sk_num
);
MAKE_FUNCPTR
(
sk_value
);
MAKE_FUNCPTR
(
sk_value
);
...
@@ -328,13 +329,14 @@ static int netconn_secure_verify(int preverify_ok, X509_STORE_CTX *ctx)
...
@@ -328,13 +329,14 @@ static int netconn_secure_verify(int preverify_ok, X509_STORE_CTX *ctx)
X509
*
cert
;
X509
*
cert
;
int
i
;
int
i
;
PCCERT_CONTEXT
endCert
=
NULL
;
PCCERT_CONTEXT
endCert
=
NULL
;
struct
stack_st
*
chain
=
(
struct
stack_st
*
)
pX509_STORE_CTX_get_chain
(
ctx
);
ret
=
TRUE
;
ret
=
TRUE
;
for
(
i
=
0
;
ret
&&
i
<
psk_num
(
(
struct
stack_st
*
)
ctx
->
chain
);
i
++
)
for
(
i
=
0
;
ret
&&
i
<
psk_num
(
chain
);
i
++
)
{
{
PCCERT_CONTEXT
context
;
PCCERT_CONTEXT
context
;
cert
=
(
X509
*
)
psk_value
(
(
struct
stack_st
*
)
ctx
->
chain
,
i
);
cert
=
(
X509
*
)
psk_value
(
chain
,
i
);
if
((
context
=
X509_to_cert_context
(
cert
)))
if
((
context
=
X509_to_cert_context
(
cert
)))
{
{
if
(
i
==
0
)
if
(
i
==
0
)
...
@@ -452,6 +454,7 @@ DWORD NETCON_init(WININET_NETCONNECTION *connection, BOOL useSSL)
...
@@ -452,6 +454,7 @@ DWORD NETCON_init(WININET_NETCONNECTION *connection, BOOL useSSL)
DYNCRYPTO
(
ERR_get_error
);
DYNCRYPTO
(
ERR_get_error
);
DYNCRYPTO
(
ERR_error_string
);
DYNCRYPTO
(
ERR_error_string
);
DYNCRYPTO
(
X509_STORE_CTX_get_ex_data
);
DYNCRYPTO
(
X509_STORE_CTX_get_ex_data
);
DYNCRYPTO
(
X509_STORE_CTX_get_chain
);
DYNCRYPTO
(
i2d_X509
);
DYNCRYPTO
(
i2d_X509
);
DYNCRYPTO
(
sk_num
);
DYNCRYPTO
(
sk_num
);
DYNCRYPTO
(
sk_value
);
DYNCRYPTO
(
sk_value
);
...
...
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