diff options
author | jsing <> | 2021-01-26 14:22:20 +0000 |
---|---|---|
committer | jsing <> | 2021-01-26 14:22:20 +0000 |
commit | c1474fe27acff975d8a3948fb3b6b72d099ee9ce (patch) | |
tree | 693ea078ee47f323e868616964234ef9ea593794 /src/lib/libssl/ssl_locl.h | |
parent | 7602e79fb847dbe732cccb0b75a2591c2792d03e (diff) | |
download | openbsd-c1474fe27acff975d8a3948fb3b6b72d099ee9ce.tar.gz openbsd-c1474fe27acff975d8a3948fb3b6b72d099ee9ce.tar.bz2 openbsd-c1474fe27acff975d8a3948fb3b6b72d099ee9ce.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 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 13 |
1 files changed, 2 insertions, 11 deletions
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 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.316 2021/01/21 18:48:57 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.317 2021/01/26 14:22:20 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 | * |
@@ -491,10 +491,7 @@ void tls12_record_layer_write_epoch_done(struct tls12_record_layer *rl, | |||
491 | uint16_t epoch); | 491 | uint16_t epoch); |
492 | void tls12_record_layer_clear_read_state(struct tls12_record_layer *rl); | 492 | void tls12_record_layer_clear_read_state(struct tls12_record_layer *rl); |
493 | void tls12_record_layer_clear_write_state(struct tls12_record_layer *rl); | 493 | void tls12_record_layer_clear_write_state(struct tls12_record_layer *rl); |
494 | void tls12_record_layer_set_read_seq_num(struct tls12_record_layer *rl, | 494 | void tls12_record_layer_reflect_seq_num(struct tls12_record_layer *rl); |
495 | uint8_t *seq_num); | ||
496 | void tls12_record_layer_set_write_seq_num(struct tls12_record_layer *rl, | ||
497 | uint8_t *seq_num); | ||
498 | int tls12_record_layer_set_read_aead(struct tls12_record_layer *rl, | 495 | int tls12_record_layer_set_read_aead(struct tls12_record_layer *rl, |
499 | SSL_AEAD_CTX *aead_ctx); | 496 | SSL_AEAD_CTX *aead_ctx); |
500 | int tls12_record_layer_set_write_aead(struct tls12_record_layer *rl, | 497 | int tls12_record_layer_set_write_aead(struct tls12_record_layer *rl, |
@@ -844,9 +841,6 @@ typedef struct ssl3_buffer_internal_st { | |||
844 | } SSL3_BUFFER_INTERNAL; | 841 | } SSL3_BUFFER_INTERNAL; |
845 | 842 | ||
846 | typedef struct ssl3_state_internal_st { | 843 | typedef struct ssl3_state_internal_st { |
847 | unsigned char read_sequence[SSL3_SEQUENCE_SIZE]; | ||
848 | unsigned char write_sequence[SSL3_SEQUENCE_SIZE]; | ||
849 | |||
850 | SSL3_BUFFER_INTERNAL rbuf; /* read IO goes into here */ | 844 | SSL3_BUFFER_INTERNAL rbuf; /* read IO goes into here */ |
851 | SSL3_BUFFER_INTERNAL wbuf; /* write IO goes into here */ | 845 | SSL3_BUFFER_INTERNAL wbuf; /* write IO goes into here */ |
852 | 846 | ||
@@ -990,9 +984,6 @@ typedef struct dtls1_state_internal_st { | |||
990 | 984 | ||
991 | unsigned short handshake_read_seq; | 985 | unsigned short handshake_read_seq; |
992 | 986 | ||
993 | /* save last sequence number for retransmissions */ | ||
994 | unsigned char last_write_sequence[SSL3_SEQUENCE_SIZE]; | ||
995 | |||
996 | /* Received handshake records (processed and unprocessed) */ | 987 | /* Received handshake records (processed and unprocessed) */ |
997 | record_pqueue unprocessed_rcds; | 988 | record_pqueue unprocessed_rcds; |
998 | record_pqueue processed_rcds; | 989 | record_pqueue processed_rcds; |