diff options
| author | jsing <> | 2021-05-02 17:18:10 +0000 |
|---|---|---|
| committer | jsing <> | 2021-05-02 17:18:10 +0000 |
| commit | b037a2e716343521c64f800a36f2361bfa861f94 (patch) | |
| tree | 635d2be6e673bbc73bbd4e14d51b19d0a5a629a1 /src/lib/libssl/ssl_locl.h | |
| parent | 00bc6c73637e1a664708ad0a6fd34c5b904543de (diff) | |
| download | openbsd-b037a2e716343521c64f800a36f2361bfa861f94.tar.gz openbsd-b037a2e716343521c64f800a36f2361bfa861f94.tar.bz2 openbsd-b037a2e716343521c64f800a36f2361bfa861f94.zip | |
Clean up dtls1_reset_seq_numbers().
Rather than doing flag gymnastics, split dtls1_reset_seq_numbers() into
separate read and write functions. Move the calls of these functions into
tls1_change_cipher_state() so they directly follow the change of cipher
state in the record layer, which avoids having to duplicate the calls in
the client and server.
ok inoguchi@ tb@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/ssl_locl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index c55dada70f..38b6838464 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.339 2021/04/30 19:26:44 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.340 2021/05/02 17:18:10 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 | * |
| @@ -1293,7 +1293,8 @@ void dtls1_clear_record_buffer(SSL *s); | |||
| 1293 | int dtls1_get_message_header(unsigned char *data, | 1293 | int dtls1_get_message_header(unsigned char *data, |
| 1294 | struct hm_header_st *msg_hdr); | 1294 | struct hm_header_st *msg_hdr); |
| 1295 | void dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr); | 1295 | void dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr); |
| 1296 | void dtls1_reset_seq_numbers(SSL *s, int rw); | 1296 | void dtls1_reset_read_seq_numbers(SSL *s); |
| 1297 | void dtls1_reset_write_seq_numbers(SSL *s); | ||
| 1297 | struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); | 1298 | struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); |
| 1298 | int dtls1_check_timeout_num(SSL *s); | 1299 | int dtls1_check_timeout_num(SSL *s); |
| 1299 | int dtls1_handle_timeout(SSL *s); | 1300 | int dtls1_handle_timeout(SSL *s); |
