Allow OSSL_PARAM_get_octet_string() to pass a NULL buffer
authorMatt Caswell <matt@openssl.org>
Tue, 28 Apr 2020 16:45:53 +0000 (17:45 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 4 May 2020 08:30:55 +0000 (09:30 +0100)
commitb756626a3732869875c50f150bddacfbcac5a7ab
tree62d02e9b5410657f71b5a19358cb99cf5cf3e3d7
parent86dc26baf65dd2ba83beff80ce37d05a3f6c33b0
Allow OSSL_PARAM_get_octet_string() to pass a NULL buffer

We may just want to know the number of octets so allow passing a NULL
buffer.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11635)
crypto/params.c
doc/man3/OSSL_PARAM_int.pod