SSL: enable client-side CBC 1/n-1 record splitting

Signed-off-by: W-Mark Kubacki <wmark@hurrikane.de>
This commit is contained in:
Mark Kubacki 2015-06-16 19:46:43 +00:00 committed by W-Mark Kubacki
parent 98f8872743
commit 2ac28e816b
No known key found for this signature in database
GPG Key ID: 66E39DC4DBF75E9E

View File

@ -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);