mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-08 06:28:26 +01:00
SSL: enable client-side CBC 1/n-1 record splitting
Signed-off-by: W-Mark Kubacki <wmark@hurrikane.de>
This commit is contained in:
parent
98f8872743
commit
2ac28e816b
@ -272,8 +272,12 @@ static int meth_create(lua_State *L)
|
||||
#endif
|
||||
if (mode == LSEC_MODE_SERVER)
|
||||
SSL_set_accept_state(ssl->ssl);
|
||||
else
|
||||
else {
|
||||
SSL_set_connect_state(ssl->ssl);
|
||||
#ifdef SSL_MODE_CBC_RECORD_SPLITTING
|
||||
SSL_set_mode(ssl->ssl, SSL_MODE_CBC_RECORD_SPLITTING);
|
||||
#endif
|
||||
}
|
||||
|
||||
io_init(&ssl->io, (p_send)ssl_send, (p_recv)ssl_recv,
|
||||
(p_error) ssl_ioerror, ssl);
|
||||
|
Loading…
Reference in New Issue
Block a user