summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2021-01-26 14:22:19 +0000
committerjsing <jsing@openbsd.org>2021-01-26 14:22:19 +0000
commitf2284ad0cdee0d2243e19a1dda1588956f603b5d (patch)
treec65bf00b35e83639bc94dcf7f30b9d6db3969446 /lib/libssl/ssl_lib.c
parentMove private key setup to a helper function with proper error (diff)
downloadwireguard-openbsd-f2284ad0cdee0d2243e19a1dda1588956f603b5d.tar.xz
wireguard-openbsd-f2284ad0cdee0d2243e19a1dda1588956f603b5d.zip
Move sequence numbers into the new TLSv1.2 record layer.
This allows for all of the DTLS sequence number save/restore code to be removed. ok inoguchi@ "whee!" tb@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index 0537cf0e463..e0e0ae4ff11 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.240 2021/01/09 10:34:29 tb Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.241 2021/01/26 14:22:19 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -2612,8 +2612,6 @@ ssl_clear_cipher_read_state(SSL *s)
s->read_hash = NULL;
tls12_record_layer_clear_read_state(s->internal->rl);
- tls12_record_layer_set_read_seq_num(s->internal->rl,
- S3I(s)->read_sequence);
if (s->internal->aead_read_ctx != NULL) {
EVP_AEAD_CTX_cleanup(&s->internal->aead_read_ctx->ctx);
@@ -2631,8 +2629,6 @@ ssl_clear_cipher_write_state(SSL *s)
s->internal->write_hash = NULL;
tls12_record_layer_clear_write_state(s->internal->rl);
- tls12_record_layer_set_write_seq_num(s->internal->rl,
- S3I(s)->write_sequence);
if (s->internal->aead_write_ctx != NULL) {
EVP_AEAD_CTX_cleanup(&s->internal->aead_write_ctx->ctx);