mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00

In later OpenSSL, eg 1.1.1, these apis are NOPs in OpenSSL. They are required for normal operation with multithreading on earlier OpenSSL, eg, 1.0.2k
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
/*
|
|
* libwebsockets - mbedTLS-specific lws apis
|
|
*
|
|
* Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation:
|
|
* version 2.1 of the License.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
* MA 02110-1301 USA
|
|
*/
|
|
|
|
#include "core/private.h"
|
|
#include "tls/mbedtls/private.h"
|
|
|
|
void
|
|
lws_tls_err_describe_clear(void)
|
|
{
|
|
}
|
|
|
|
int
|
|
lws_context_init_ssl_library(const struct lws_context_creation_info *info)
|
|
{
|
|
lwsl_info(" Compiled with MbedTLS support\n");
|
|
|
|
if (!lws_check_opt(info->options, LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT))
|
|
lwsl_info(" SSL disabled: no "
|
|
"LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT\n");
|
|
|
|
return 0;
|
|
}
|
|
|
|
void
|
|
lws_context_deinit_ssl_library(struct lws_context *context)
|
|
{
|
|
|
|
}
|