mirror of
https://github.com/brunoos/luasec.git
synced 2025-07-19 07:19:50 +02:00
Merge pull request #126 from neheb/master
Get rid of some deprecation warnings with OpenSSL 1.1
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user