mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
Initialize openssl during client initialization.
This commit is contained in:
parent
917f43ab82
commit
b8bd556df0
1 changed files with 7 additions and 0 deletions
|
@ -241,6 +241,13 @@ int lws_context_init_client_ssl(struct lws_context_creation_info *info,
|
|||
if (info->port != CONTEXT_PORT_NO_LISTEN)
|
||||
return 0;
|
||||
|
||||
/* basic openssl init */
|
||||
|
||||
SSL_library_init();
|
||||
|
||||
OpenSSL_add_all_algorithms();
|
||||
SSL_load_error_strings();
|
||||
|
||||
method = (SSL_METHOD *)SSLv23_client_method();
|
||||
if (!method) {
|
||||
error = ERR_get_error();
|
||||
|
|
Loading…
Add table
Reference in a new issue