From f42c171d5561e543a653395a274bec4530b2d0a8 Mon Sep 17 00:00:00 2001 From: Bruno Silvestre Date: Wed, 12 Sep 2018 17:45:13 -0300 Subject: [PATCH] This mode is available in new versions of OpenSSL, no more check --- src/ssl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 277b0ce..9fab55d 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -302,9 +302,7 @@ static int meth_create(lua_State *L) SSL_set_fd(ssl->ssl, (int)SOCKET_INVALID); SSL_set_mode(ssl->ssl, SSL_MODE_ENABLE_PARTIAL_WRITE | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER); -#if defined(SSL_MODE_RELEASE_BUFFERS) SSL_set_mode(ssl->ssl, SSL_MODE_RELEASE_BUFFERS); -#endif if (mode == LSEC_MODE_SERVER) SSL_set_accept_state(ssl->ssl); else