Let SSL_copy_session_id() return an int for error checking.
authortb <tb@openbsd.org>
Fri, 24 Aug 2018 20:30:21 +0000 (20:30 +0000)
committertb <tb@openbsd.org>
Fri, 24 Aug 2018 20:30:21 +0000 (20:30 +0000)
commit1e7a28f35c78b2a96f391bbdce6e59bf4b46d07c
tree1d19e766eb2c15de21fdc58cc59d98c5aeb85565
parent28aa72f4849ce62ed7fdc5254e200c223026b872
Let SSL_copy_session_id() return an int for error checking.

Accordingly, add some error checking to SSL_copy_session_id(),
BIO_ssl_copy_session_id(), and SSL_dup().
Prompted by OpenSSL commit 17dd65e6e1f

Tested in a bulk build by sthen

ok jsing
lib/libssl/bio_ssl.c
lib/libssl/ssl.h
lib/libssl/ssl_lib.c