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/ssl_locl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl_locl.h') diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index e6b5576545..18509438ae 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_locl.h,v 1.348 2021/06/13 15:34:41 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.349 2021/06/19 16:52:47 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -548,6 +548,9 @@ void tls12_record_layer_set_cipher_hash(struct tls12_record_layer *rl, const EVP_MD *mac_hash); void tls12_record_layer_set_version(struct tls12_record_layer *rl, uint16_t version); +void tls12_record_layer_set_initial_epoch(struct tls12_record_layer *rl, + uint16_t epoch); +uint16_t tls12_record_layer_initial_epoch(struct tls12_record_layer *rl); uint16_t tls12_record_layer_write_epoch(struct tls12_record_layer *rl); int tls12_record_layer_use_write_epoch(struct tls12_record_layer *rl, uint16_t epoch); -- cgit v1.2.3-55-g6feb