From b3e68bc059f5dc0a1e5724aac49107ddb9db15fe Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Wed, 22 Jun 2022 22:00:25 -0700 Subject: [PATCH] Remove undocumented `ProgramSslCompression`, as it doesn't seem to work --- tool/net/redbean.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 47928b30d..1fd4f913e 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -4791,17 +4791,6 @@ static int LuaEvadeDragnetSurveillance(lua_State *L) { return LuaProgramBool(L, &evadedragnetsurveillance); } -static int LuaProgramSslCompression(lua_State *L) { -#ifndef UNSECURE - if (!unsecure) { - OnlyCallFromInitLua(L, "ProgramSslCompression"); - conf.disable_compression = confcli.disable_compression = - !lua_toboolean(L, 1); - } -#endif - return 0; -} - static int LuaHidePath(lua_State *L) { size_t pathlen; const char *path; @@ -4994,7 +4983,6 @@ static const char *const kDontAutoComplete[] = { "ProgramPrivateKey", // TODO "ProgramSslCiphersuite", // TODO "ProgramSslClientVerify", // TODO - "ProgramSslCompression", // "ProgramSslTicketLifetime", // "ProgramTimeout", // TODO "ProgramUid", // @@ -5171,7 +5159,6 @@ static const luaL_Reg kLuaFuncs[] = { {"ProgramPrivateKey", LuaProgramPrivateKey}, // {"ProgramSslCiphersuite", LuaProgramSslCiphersuite}, // {"ProgramSslClientVerify", LuaProgramSslClientVerify}, // - {"ProgramSslCompression", LuaProgramSslCompression}, // {"ProgramSslFetchVerify", LuaProgramSslFetchVerify}, // {"ProgramSslInit", LuaProgramSslInit}, // {"ProgramSslPresharedKey", LuaProgramSslPresharedKey}, //