aboutsummaryrefslogtreecommitdiff
path: root/ssl/statem/statem_dtls.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-09-09 00:13:41 +0100
committerMatt Caswell <matt@openssl.org>2016-09-13 09:41:21 +0100
commitde451856f08364ad6c6659b6eacbe820edc2aab9 (patch)
tree9906cf7b996f9c1316e800390acc96e21e20f040 /ssl/statem/statem_dtls.c
parent6ae4f5e087d204e02a5dc88ea905cca9d144a30d (diff)
downloadopenssl-de451856f08364ad6c6659b6eacbe820edc2aab9.zip
openssl-de451856f08364ad6c6659b6eacbe820edc2aab9.tar.gz
openssl-de451856f08364ad6c6659b6eacbe820edc2aab9.tar.bz2
Address WPACKET review comments
A few style tweaks here and there. The main change is that curr and packet_len are now offsets into the buffer to account for the fact that the pointers can change if the buffer grows. Also dropped support for the WPACKET_set_packet_len() function. I thought that was going to be needed but so far it hasn't been. It doesn't really work any more due to the offsets change. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/statem/statem_dtls.c')
-rw-r--r--ssl/statem/statem_dtls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c
index 18ab7dc..35f25f1 100644
--- a/ssl/statem/statem_dtls.c
+++ b/ssl/statem/statem_dtls.c
@@ -1200,6 +1200,7 @@ void dtls1_get_message_header(unsigned char *data, struct hm_header_st *msg_hdr)
int dtls1_set_handshake_header2(SSL *s, WPACKET *pkt, int htype)
{
unsigned char *header;
+
dtls1_set_message_header(s, htype, 0, 0, 0);
/*