Fix bio callback backward compatibility
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 19 Mar 2018 13:20:53 +0000 (14:20 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 19 Mar 2018 13:20:53 +0000 (14:20 +0100)
commitc911e5da3c8e09a9531149c95aa92c65ecdf4b99
tree0e8849c1141fddf08429148fc07b83d3ec9ba192
parentd4ef4fbf46a51837a54e4a7cd0140eb9f08fdf30
Fix bio callback backward compatibility

Don't pass a pointer to uninitialized processed value
for BIO_CB_READ and BIO_CB_WRITE

Check the correct cmd code in BIO_callback_ctrl

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5516)
crypto/bio/bio_lib.c
doc/man3/BIO_set_callback.pod
test/bio_callback_test.c [new file with mode: 0644]
test/build.info
test/recipes/04-test_bio_callback.t [new file with mode: 0644]