diff options
| author | jsing <> | 2021-09-04 14:24:28 +0000 |
|---|---|---|
| committer | jsing <> | 2021-09-04 14:24:28 +0000 |
| commit | 1bdeea20a1ed87176fb6f5a13f41bd2e68568f6c (patch) | |
| tree | 30ff1d6ccf31f3c51cfc256334e43e5e1cf91810 /src/lib/libssl/dtls_locl.h | |
| parent | 820c7d9818bebf52f750e9d41b7f01dbd48e0c4e (diff) | |
| download | openbsd-1bdeea20a1ed87176fb6f5a13f41bd2e68568f6c.tar.gz openbsd-1bdeea20a1ed87176fb6f5a13f41bd2e68568f6c.tar.bz2 openbsd-1bdeea20a1ed87176fb6f5a13f41bd2e68568f6c.zip | |
Change dtls1_get_message_header() to take a CBS.
The callers know the actual length and can initialise a CBS correctly.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/dtls_locl.h')
| -rw-r--r-- | src/lib/libssl/dtls_locl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/dtls_locl.h b/src/lib/libssl/dtls_locl.h index 502b42dcdd..4cf8827ec3 100644 --- a/src/lib/libssl/dtls_locl.h +++ b/src/lib/libssl/dtls_locl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dtls_locl.h,v 1.6 2021/08/31 13:34:55 jsing Exp $ */ | 1 | /* $OpenBSD: dtls_locl.h,v 1.7 2021/09/04 14:24:28 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
| 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
| @@ -206,8 +206,7 @@ int dtls1_retransmit_message(SSL *s, unsigned short seq, | |||
| 206 | int dtls1_get_queue_priority(unsigned short seq, int is_ccs); | 206 | int dtls1_get_queue_priority(unsigned short seq, int is_ccs); |
| 207 | int dtls1_retransmit_buffered_messages(SSL *s); | 207 | int dtls1_retransmit_buffered_messages(SSL *s); |
| 208 | void dtls1_clear_record_buffer(SSL *s); | 208 | void dtls1_clear_record_buffer(SSL *s); |
| 209 | int dtls1_get_message_header(unsigned char *data, | 209 | int dtls1_get_message_header(CBS *header, struct hm_header_st *msg_hdr); |
| 210 | struct hm_header_st *msg_hdr); | ||
| 211 | void dtls1_reset_read_seq_numbers(SSL *s); | 210 | void dtls1_reset_read_seq_numbers(SSL *s); |
| 212 | struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); | 211 | struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); |
| 213 | int dtls1_check_timeout_num(SSL *s); | 212 | int dtls1_check_timeout_num(SSL *s); |
