From c1474fe27acff975d8a3948fb3b6b72d099ee9ce Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 26 Jan 2021 14:22:20 +0000 Subject: 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@ --- src/lib/libssl/ssl_locl.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (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 01f2ebbab1..4390361c66 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.316 2021/01/21 18:48:57 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.317 2021/01/26 14:22:20 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -491,10 +491,7 @@ void tls12_record_layer_write_epoch_done(struct tls12_record_layer *rl, uint16_t epoch); void tls12_record_layer_clear_read_state(struct tls12_record_layer *rl); void tls12_record_layer_clear_write_state(struct tls12_record_layer *rl); -void tls12_record_layer_set_read_seq_num(struct tls12_record_layer *rl, - uint8_t *seq_num); -void tls12_record_layer_set_write_seq_num(struct tls12_record_layer *rl, - uint8_t *seq_num); +void tls12_record_layer_reflect_seq_num(struct tls12_record_layer *rl); int tls12_record_layer_set_read_aead(struct tls12_record_layer *rl, SSL_AEAD_CTX *aead_ctx); int tls12_record_layer_set_write_aead(struct tls12_record_layer *rl, @@ -844,9 +841,6 @@ typedef struct ssl3_buffer_internal_st { } SSL3_BUFFER_INTERNAL; typedef struct ssl3_state_internal_st { - unsigned char read_sequence[SSL3_SEQUENCE_SIZE]; - unsigned char write_sequence[SSL3_SEQUENCE_SIZE]; - SSL3_BUFFER_INTERNAL rbuf; /* read IO goes into here */ SSL3_BUFFER_INTERNAL wbuf; /* write IO goes into here */ @@ -990,9 +984,6 @@ typedef struct dtls1_state_internal_st { unsigned short handshake_read_seq; - /* save last sequence number for retransmissions */ - unsigned char last_write_sequence[SSL3_SEQUENCE_SIZE]; - /* Received handshake records (processed and unprocessed) */ record_pqueue unprocessed_rcds; record_pqueue processed_rcds; -- cgit v1.2.3-55-g6feb