From 25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 19 Jun 2021 16:52:47 +0000 Subject: Provide the ability to set the initial DTLS epoch value. This allows for regress to test edge cases for epoch handling. ok tb@ --- src/lib/libssl/d1_lib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 bc00ab8ca4..66895a361f 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.55 2021/06/19 16:38:27 jsing Exp $ */ +/* $OpenBSD: d1_lib.c,v 1.56 2021/06/19 16:52:47 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -197,6 +197,9 @@ 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)->processed_rcds.epoch = D1I(s)->r_epoch; D1I(s)->unprocessed_rcds.epoch = D1I(s)->r_epoch + 1; -- cgit v1.2.3-55-g6feb