mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
Enable usage of ancient OpenSSL.
Yes people should be upgrading their OpenSSL, but there are still old versions without Heartbleed out there being used...
This commit is contained in:
parent
4076a2c8bc
commit
2f0003a431
1 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
|
||||
#include "private-libwebsockets.h"
|
||||
#include <openssl/err.h>
|
||||
|
||||
int openssl_websocket_private_data_index;
|
||||
|
||||
|
@ -221,7 +222,7 @@ lws_ssl_destroy(struct libwebsocket_context *context)
|
|||
if (!context->user_supplied_ssl_ctx && context->ssl_client_ctx)
|
||||
SSL_CTX_free(context->ssl_client_ctx);
|
||||
|
||||
#ifdef USE_CYASSL
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x01000000) || defined(USE_CYASSL)
|
||||
ERR_remove_state(0);
|
||||
#else
|
||||
ERR_remove_thread_state(NULL);
|
||||
|
@ -617,7 +618,7 @@ lws_ssl_context_destroy(struct libwebsocket_context *context)
|
|||
if (!context->user_supplied_ssl_ctx && context->ssl_client_ctx)
|
||||
SSL_CTX_free(context->ssl_client_ctx);
|
||||
|
||||
#ifdef USE_CYASSL
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x01000000) || defined(USE_CYASSL)
|
||||
ERR_remove_state(0);
|
||||
#else
|
||||
ERR_remove_thread_state(NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue