Merge pull request #126 from neheb/master

Get rid of some deprecation warnings with OpenSSL 1.1
This commit is contained in:
Bruno Silvestre
2019-10-13 19:42:19 -03:00
committed by GitHub
3 changed files with 12 additions and 5 deletions

View File

@ -912,6 +912,7 @@ static luaL_Reg funcs[] = {
*/
LSEC_API int luaopen_ssl_core(lua_State *L)
{
#if OPENSSL_VERSION_NUMBER<0x10100000L
/* Initialize SSL */
if (!SSL_library_init()) {
lua_pushstring(L, "unable to initialize SSL library");
@ -919,6 +920,7 @@ LSEC_API int luaopen_ssl_core(lua_State *L)
}
OpenSSL_add_all_algorithms();
SSL_load_error_strings();
#endif
#if defined(WITH_LUASOCKET)
/* Initialize internal library */