Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down