summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2021-01-13 18:20:54 +0000
committerjsing <jsing@openbsd.org>2021-01-13 18:20:54 +0000
commit108b1a0f10c48f9cdf4e83521927436373c3d92c (patch)
tree08d8954260595124b26904285713aad1456e9f36 /lib/libssl/ssl_locl.h
parentMake the binary run by linking it against net-snmpd. (diff)
downloadwireguard-openbsd-108b1a0f10c48f9cdf4e83521927436373c3d92c.tar.xz
wireguard-openbsd-108b1a0f10c48f9cdf4e83521927436373c3d92c.zip
Clean up sequence number handing in the new TLSv1.2 record layer.
Handle protocol specific (DTLS vs TLS) sequence number differences in the open/seal record functions and propagate the sequence number through to the called functions. This means that DTLS specific knowledge is limited to two functions and also avoids building sequence numbers multiple times over. As a result, the DTLS explicit sequence number is now extracted from the record header and passed through for processing, which makes the read epoch handling redundant. ok inoguchi@ tb@
Diffstat (limited to 'lib/libssl/ssl_locl.h')
-rw-r--r--lib/libssl/ssl_locl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h
index 5c646d2208d..560fcdc1a4a 100644
--- a/lib/libssl/ssl_locl.h
+++ b/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.311 2021/01/07 15:32:59 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.312 2021/01/13 18:20:54 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -479,8 +479,6 @@ void tls12_record_layer_alert(struct tls12_record_layer *rl,
uint8_t *alert_desc);
void tls12_record_layer_set_version(struct tls12_record_layer *rl,
uint16_t version);
-void tls12_record_layer_set_read_epoch(struct tls12_record_layer *rl,
- uint16_t epoch);
void tls12_record_layer_set_write_epoch(struct tls12_record_layer *rl,
uint16_t epoch);
void tls12_record_layer_clear_read_state(struct tls12_record_layer *rl);