summaryrefslogtreecommitdiffstats
path: root/ssl/s3_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-09-06 15:09:51 +0100
committerMatt Caswell <matt@openssl.org>2016-09-13 09:41:21 +0100
commit0217dd19c00657b8bfd2bce1090785eb32abb235 (patch)
tree3d8d15ce4dbd512de85108994590be59fd83e801 /ssl/s3_lib.c
parentae2f7b37da3640f4cfa5df0e5bad2aa2ca5f1ba3 (diff)
Move from explicit sub-packets to implicit ones
No need to declare an explicit sub-packet. Just start one. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r--ssl/s3_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index 7cec0116c0..1f9f6afff8 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -2795,11 +2795,11 @@ int ssl3_set_handshake_header(SSL *s, int htype, unsigned long len)
* at that point.
* TODO - RENAME ME
*/
-int ssl3_set_handshake_header2(SSL *s, WPACKET *pkt, WPACKET *body, int htype)
+int ssl3_set_handshake_header2(SSL *s, WPACKET *pkt, int htype)
{
/* Set the content type and 3 bytes for the message len */
if (!WPACKET_put_bytes(pkt, htype, 1)
- || !WPACKET_get_sub_packet_len(pkt, body, 3))
+ || !WPACKET_start_sub_packet_len(pkt, 3))
return 0;
return 1;