mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-27 12:58:21 +01:00
Removing OpenSSL 0.9.8 code
This commit is contained in:
parent
5514c4a06e
commit
661d08e5f3
@ -486,12 +486,6 @@ static int set_options(lua_State *L)
|
||||
if (max > 1) {
|
||||
for (i = 2; i <= max; i++) {
|
||||
str = luaL_checkstring(L, i);
|
||||
#if !defined(SSL_OP_NO_COMPRESSION) && (OPENSSL_VERSION_NUMBER >= 0x0090800f) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
|
||||
/* Version 0.9.8 has a different way to disable compression */
|
||||
if (!strcmp(str, "no_compression"))
|
||||
ctx->comp_methods = NULL;
|
||||
else
|
||||
#endif
|
||||
if (!set_option_flag(str, &flag)) {
|
||||
lua_pushboolean(L, 0);
|
||||
lua_pushfstring(L, "invalid option (%s)", str);
|
||||
|
Loading…
Reference in New Issue
Block a user