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
016d7c3c
Commit
016d7c3c
authored
Sep 30, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Move initialization of SSL_CTX to library initialization time.
parent
b214fc62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
net.c
dlls/winhttp/net.c
+7
-7
No files found.
dlls/winhttp/net.c
View file @
016d7c3c
...
...
@@ -234,6 +234,13 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
pBIO_new_fp
(
stderr
,
BIO_NOCLOSE
);
method
=
pSSLv23_method
();
ctx
=
pSSL_CTX_new
(
method
);
if
(
!
pSSL_CTX_set_default_verify_paths
(
ctx
))
{
ERR
(
"SSL_CTX_set_default_verify_paths failed: %s
\n
"
,
pERR_error_string
(
pERR_get_error
(),
0
));
set_last_error
(
ERROR_OUTOFMEMORY
);
return
FALSE
;
}
#else
WARN
(
"SSL support not compiled in.
\n
"
);
set_last_error
(
ERROR_WINHTTP_SECURE_CHANNEL_ERROR
);
...
...
@@ -333,13 +340,6 @@ BOOL netconn_secure_connect( netconn_t *conn )
X509
*
cert
;
long
res
;
ctx
=
pSSL_CTX_new
(
method
);
if
(
!
pSSL_CTX_set_default_verify_paths
(
ctx
))
{
ERR
(
"SSL_CTX_set_default_verify_paths failed: %s
\n
"
,
pERR_error_string
(
pERR_get_error
(),
0
));
set_last_error
(
ERROR_OUTOFMEMORY
);
return
FALSE
;
}
if
(
!
(
conn
->
ssl_conn
=
pSSL_new
(
ctx
)))
{
ERR
(
"SSL_new failed: %s
\n
"
,
pERR_error_string
(
pERR_get_error
(),
0
));
...
...
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