mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-08 14:38:25 +01:00
Removing SSLv3 support
This commit is contained in:
parent
8212b89f1a
commit
89bdc6148c
@ -32,11 +32,6 @@ LSEC_API int luaopen_ssl_config(lua_State *L)
|
|||||||
lua_pushstring(L, "protocols");
|
lua_pushstring(L, "protocols");
|
||||||
lua_newtable(L);
|
lua_newtable(L);
|
||||||
|
|
||||||
#ifndef OPENSSL_NO_SSL3
|
|
||||||
lua_pushstring(L, "sslv3");
|
|
||||||
lua_pushboolean(L, 1);
|
|
||||||
lua_rawset(L, -3);
|
|
||||||
#endif
|
|
||||||
lua_pushstring(L, "tlsv1");
|
lua_pushstring(L, "tlsv1");
|
||||||
lua_pushboolean(L, 1);
|
lua_pushboolean(L, 1);
|
||||||
lua_rawset(L, -3);
|
lua_rawset(L, -3);
|
||||||
|
@ -66,9 +66,6 @@ static const SSL_METHOD* str2method(const char *method)
|
|||||||
{
|
{
|
||||||
if (!strcmp(method, "any")) return SSLv23_method();
|
if (!strcmp(method, "any")) return SSLv23_method();
|
||||||
if (!strcmp(method, "sslv23")) return SSLv23_method(); // deprecated
|
if (!strcmp(method, "sslv23")) return SSLv23_method(); // deprecated
|
||||||
#ifndef OPENSSL_NO_SSL3
|
|
||||||
if (!strcmp(method, "sslv3")) return SSLv3_method();
|
|
||||||
#endif
|
|
||||||
if (!strcmp(method, "tlsv1")) return TLSv1_method();
|
if (!strcmp(method, "tlsv1")) return TLSv1_method();
|
||||||
#if (OPENSSL_VERSION_NUMBER >= 0x1000100fL)
|
#if (OPENSSL_VERSION_NUMBER >= 0x1000100fL)
|
||||||
if (!strcmp(method, "tlsv1_1")) return TLSv1_1_method();
|
if (!strcmp(method, "tlsv1_1")) return TLSv1_1_method();
|
||||||
|
Loading…
Reference in New Issue
Block a user