diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-10-12 17:10:51 +0200 |
---|---|---|
committer | Daiki Ueno <dueno@redhat.com> | 2018-11-11 07:03:43 +0100 |
commit | 63e8714d8b4dcb4ccb78972e0b69a52d8c3850c8 (patch) | |
tree | eaa9353c30b59ee2d508462d343fbc8aa287474b /lib/tls13 | |
parent | cfe71476b634e38102d214b256a4e4760085b322 (diff) | |
download | gnutls-63e8714d8b4dcb4ccb78972e0b69a52d8c3850c8.tar.gz |
constate: add epoch_rel argument to _gnutls_epoch_dup
This is necessary for handling early data. Previously,
_gnutls_epoch_dup() copied the parameters from EPOCH_READ_CURRENT,
while the client only sets EPOCH_WRITE_CURRENT when sending early
data. This allows caller to specify from which epoch the parameters
are copied.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/tls13')
-rw-r--r-- | lib/tls13/key_update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tls13/key_update.c b/lib/tls13/key_update.c index d9c495efdc..0c5c93734a 100644 --- a/lib/tls13/key_update.c +++ b/lib/tls13/key_update.c @@ -40,7 +40,7 @@ static int update_keys(gnutls_session_t session, hs_stage_t stage) return gnutls_assert_val(ret); _gnutls_epoch_bump(session); - ret = _gnutls_epoch_dup(session); + ret = _gnutls_epoch_dup(session, EPOCH_READ_CURRENT); if (ret < 0) return gnutls_assert_val(ret); |