From c536b6be1a72aefd632d5530106a67c516cb9f4b Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Wed, 21 Sep 2016 11:26:47 +0100 Subject: Convert HelloVerifyRequest construction to WPACKET We actually construct a HelloVerifyRequest in two places with common code pulled into a single function. This one commit handles both places. Reviewed-by: Rich Salz --- ssl/ssl_locl.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ssl/ssl_locl.h') diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 6ad27354d1..630fea892e 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -1950,9 +1950,8 @@ void dtls1_start_timer(SSL *s); void dtls1_stop_timer(SSL *s); __owur int dtls1_is_timer_expired(SSL *s); void dtls1_double_timeout(SSL *s); -__owur unsigned int dtls_raw_hello_verify_request(unsigned char *buf, - unsigned char *cookie, - unsigned char cookie_len); +__owur int dtls_raw_hello_verify_request(WPACKET *pkt, unsigned char *cookie, + unsigned char cookie_len); __owur int dtls1_send_newsession_ticket(SSL *s); __owur unsigned int dtls1_min_mtu(SSL *s); void dtls1_hm_fragment_free(hm_fragment *frag); -- cgit v1.2.3