diff options
author | Matt Caswell <matt@openssl.org> | 2016-09-09 00:13:41 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-09-13 09:41:21 +0100 |
commit | de451856f08364ad6c6659b6eacbe820edc2aab9 (patch) | |
tree | 9906cf7b996f9c1316e800390acc96e21e20f040 /ssl/statem/statem_dtls.c | |
parent | 6ae4f5e087d204e02a5dc88ea905cca9d144a30d (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c index 18ab7dc8f2..35f25f1f1e 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); /* |