diff options
author | Matt Caswell <matt@openssl.org> | 2016-09-20 14:47:44 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-09-20 14:47:44 +0100 |
commit | 08029dfa03c0ee3a50f373017143aaae5f87d17f (patch) | |
tree | 536a5df572e89053310d4b8a4fe6dee4ce56485b /ssl/t1_ext.c | |
parent | 85a7a5e6ef633d2b01ef9792463a36b507a35a6a (diff) |
Convert WPACKET_put_bytes to use convenience macros
All the other functions that take an argument for the number of bytes
use convenience macros for this purpose. We should do the same with
WPACKET_put_bytes().
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/t1_ext.c')
-rw-r--r-- | ssl/t1_ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_ext.c b/ssl/t1_ext.c index 664906c1c2..099a0ae086 100644 --- a/ssl/t1_ext.c +++ b/ssl/t1_ext.c @@ -171,7 +171,7 @@ int custom_ext_add(SSL *s, int server, WPACKET *pkt, int *al) continue; /* skip this extension */ } - if (!WPACKET_put_bytes(pkt, meth->ext_type, 2) + if (!WPACKET_put_bytes_u16(pkt, meth->ext_type) || !WPACKET_start_sub_packet_u16(pkt) || (outlen > 0 && !WPACKET_memcpy(pkt, out, outlen)) || !WPACKET_close(pkt)) { |