Yes people should be upgrading their OpenSSL, but there are still old versions without Heartbleed out there being used...
*/
#include "private-libwebsockets.h"
+ #include <openssl/err.h>
int openssl_websocket_private_data_index;
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);
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);