summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2021-06-19 16:52:47 +0000
committerjsing <>2021-06-19 16:52:47 +0000
commit25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e (patch)
tree7d820c1c57ea372d0362ea2f1759e36cace4a21a /src/lib/libssl/ssl_locl.h
parent13bc1028f3bea79117c0675c4741f12c61a65586 (diff)
downloadopenbsd-25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e.tar.gz
openbsd-25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e.tar.bz2
openbsd-25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e.zip
Provide the ability to set the initial DTLS epoch value.
This allows for regress to test edge cases for epoch handling. ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h5
1 files changed, 4 insertions, 1 deletions
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 @@
1/* $OpenBSD: ssl_locl.h,v 1.348 2021/06/13 15:34:41 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.349 2021/06/19 16:52:47 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -548,6 +548,9 @@ void tls12_record_layer_set_cipher_hash(struct tls12_record_layer *rl,
548 const EVP_MD *mac_hash); 548 const EVP_MD *mac_hash);
549void tls12_record_layer_set_version(struct tls12_record_layer *rl, 549void tls12_record_layer_set_version(struct tls12_record_layer *rl,
550 uint16_t version); 550 uint16_t version);
551void tls12_record_layer_set_initial_epoch(struct tls12_record_layer *rl,
552 uint16_t epoch);
553uint16_t tls12_record_layer_initial_epoch(struct tls12_record_layer *rl);
551uint16_t tls12_record_layer_write_epoch(struct tls12_record_layer *rl); 554uint16_t tls12_record_layer_write_epoch(struct tls12_record_layer *rl);
552int tls12_record_layer_use_write_epoch(struct tls12_record_layer *rl, 555int tls12_record_layer_use_write_epoch(struct tls12_record_layer *rl,
553 uint16_t epoch); 556 uint16_t epoch);