mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-28 05:18:21 +01:00
This mode is available in new versions of OpenSSL, no more check
This commit is contained in:
parent
706e0f0281
commit
f42c171d55
@ -302,9 +302,7 @@ static int meth_create(lua_State *L)
|
|||||||
SSL_set_fd(ssl->ssl, (int)SOCKET_INVALID);
|
SSL_set_fd(ssl->ssl, (int)SOCKET_INVALID);
|
||||||
SSL_set_mode(ssl->ssl, SSL_MODE_ENABLE_PARTIAL_WRITE |
|
SSL_set_mode(ssl->ssl, SSL_MODE_ENABLE_PARTIAL_WRITE |
|
||||||
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
||||||
#if defined(SSL_MODE_RELEASE_BUFFERS)
|
|
||||||
SSL_set_mode(ssl->ssl, SSL_MODE_RELEASE_BUFFERS);
|
SSL_set_mode(ssl->ssl, SSL_MODE_RELEASE_BUFFERS);
|
||||||
#endif
|
|
||||||
if (mode == LSEC_MODE_SERVER)
|
if (mode == LSEC_MODE_SERVER)
|
||||||
SSL_set_accept_state(ssl->ssl);
|
SSL_set_accept_state(ssl->ssl);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user