From cedbde20c0ecfb870c00ce4fe4401f89a9397b6d Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 30 Aug 2021 19:12:25 +0000 Subject: Replace DTLS r_epoch with the read epoch from the TLSv1.2 record layer. ok inoguchi@ tb@ --- src/lib/libssl/d1_lib.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lib/libssl/d1_lib.c') diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c index 3db5629e23..d4280a277c 100644 --- a/src/lib/libssl/d1_lib.c +++ b/src/lib/libssl/d1_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_lib.c,v 1.58 2021/07/21 08:42:14 jsing Exp $ */ +/* $OpenBSD: d1_lib.c,v 1.59 2021/08/30 19:12:25 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -191,10 +191,8 @@ dtls1_clear(SSL *s) memset(s->d1, 0, sizeof(*s->d1)); s->d1->internal = internal; - D1I(s)->r_epoch = - tls12_record_layer_initial_epoch(s->internal->rl); - - D1I(s)->unprocessed_rcds.epoch = D1I(s)->r_epoch + 1; + D1I(s)->unprocessed_rcds.epoch = + tls12_record_layer_read_epoch(s->internal->rl) + 1; if (s->server) { D1I(s)->cookie_len = sizeof(D1I(s)->cookie); -- cgit v1.2.3-55-g6feb