PACKET: add PACKET_memdup and PACKET_strndup
authorEmilia Kasper <emilia@openssl.org>
Tue, 1 Sep 2015 16:19:14 +0000 (18:19 +0200)
committerEmilia Kasper <emilia@openssl.org>
Wed, 9 Sep 2015 10:47:05 +0000 (12:47 +0200)
commit6d41fc80e6152a6bf9d062b2a8e835a388ed0062
treecc392b5acae15a064d074c2cdef7838bb2f37139
parentd728f0f5f28c9c5347ac371373e3cd4cb350760f
PACKET: add PACKET_memdup and PACKET_strndup

Use each once in s3_srvr.c to show how they work.

Also fix a bug introduced in c3fc7eeab884b6876a1b4006163f190d325aa047
and made apparent by this change:
ssl3_get_next_proto wasn't updating next_proto_negotiated_len

Reviewed-by: Matt Caswell <matt@openssl.org>
ssl/packet_locl.h
ssl/s3_srvr.c
test/packettest.c