Skip to content

Commit

Permalink
Fix early data: call new BoringSSL function to set context
Browse files Browse the repository at this point in the history
Need to call SSL_set_quic_early_data_context() to enable early data
in session tickets issued to the client.  This change was introduced
in when we switched to newer BoringSSL.
  • Loading branch information
Dmitri Tikhonov committed Jun 17, 2020
1 parent 649eb45 commit 9dd862f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/liblsquic/lsquic_enc_sess_ietf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,13 @@ iquic_esfi_init_server (enc_session_t *enc_session_p)
LSQ_INFO("could not set stream method");
return -1;
}
/* TODO: set to transport parameter string instead of the constant string */
if (!SSL_set_quic_early_data_context(enc_sess->esi_ssl,
(unsigned char *) "lsquic", 6))
{
LSQ_INFO("could not set early data context");
return -1;
}
maybe_setup_key_logging(enc_sess);

transpa_len = gen_trans_params(enc_sess, u.trans_params,
Expand Down

0 comments on commit 9dd862f

Please sign in to comment.