summaryrefslogtreecommitdiff
path: root/src/lib/libssl/dtls_locl.h
diff options
context:
space:
mode:
authorjsing <>2021-09-04 14:24:28 +0000
committerjsing <>2021-09-04 14:24:28 +0000
commitdee1e6cf24ed6de39feac8e8be7b300789269839 (patch)
tree30ff1d6ccf31f3c51cfc256334e43e5e1cf91810 /src/lib/libssl/dtls_locl.h
parenta9d8853125301b55e45f0243ec734a0fb4f3a8f3 (diff)
downloadopenbsd-dee1e6cf24ed6de39feac8e8be7b300789269839.tar.gz
openbsd-dee1e6cf24ed6de39feac8e8be7b300789269839.tar.bz2
openbsd-dee1e6cf24ed6de39feac8e8be7b300789269839.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.h5
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,
206int dtls1_get_queue_priority(unsigned short seq, int is_ccs); 206int dtls1_get_queue_priority(unsigned short seq, int is_ccs);
207int dtls1_retransmit_buffered_messages(SSL *s); 207int dtls1_retransmit_buffered_messages(SSL *s);
208void dtls1_clear_record_buffer(SSL *s); 208void dtls1_clear_record_buffer(SSL *s);
209int dtls1_get_message_header(unsigned char *data, 209int dtls1_get_message_header(CBS *header, struct hm_header_st *msg_hdr);
210 struct hm_header_st *msg_hdr);
211void dtls1_reset_read_seq_numbers(SSL *s); 210void dtls1_reset_read_seq_numbers(SSL *s);
212struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); 211struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft);
213int dtls1_check_timeout_num(SSL *s); 212int dtls1_check_timeout_num(SSL *s);