Clean up the ssl_bytes_to_cipher_list() API - rather than having the
authorjsing <jsing@openbsd.org>
Wed, 15 Apr 2015 16:25:43 +0000 (16:25 +0000)
committerjsing <jsing@openbsd.org>
Wed, 15 Apr 2015 16:25:43 +0000 (16:25 +0000)
commitca366248adfd5c721424a6c92d7b72413e244187
tree9f5fa4149c6ddf9985cafa352d92e6197211e574
parent63818bffe5cf67dbc4704bd2d43b2ffb225775f2
Clean up the ssl_bytes_to_cipher_list() API - rather than having the
ability to pass or not pass a STACK_OF(SSL_CIPHER) *, which is then either
zeroed or if NULL a new one is allocated, always allocate one and return it
directly.

Inspired by simliar changes in BoringSSL.

ok beck@ doug@
lib/libssl/s3_srvr.c
lib/libssl/src/ssl/s3_srvr.c
lib/libssl/src/ssl/ssl_lib.c
lib/libssl/src/ssl/ssl_locl.h
lib/libssl/ssl_lib.c
lib/libssl/ssl_locl.h