From: Hubert Kario Date: Fri, 29 Sep 2017 13:40:43 +0000 (+0200) Subject: doc: note that the BN_new() initialises the BIGNUM X-Git-Tag: OpenSSL_1_0_2m~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d9a38e859dfe30a112c421dc7b32821370efd805;p=oweals%2Fopenssl.git doc: note that the BN_new() initialises the BIGNUM BN_new() and BN_secure_new() not only allocate memory, but also initialise it to deterministic value - 0. Document that behaviour to make it explicit backport from #4438 Reviewed-by: Richard Levitte Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4443) --- diff --git a/doc/crypto/BN_new.pod b/doc/crypto/BN_new.pod index 413a1ea842..d446603191 100644 --- a/doc/crypto/BN_new.pod +++ b/doc/crypto/BN_new.pod @@ -34,7 +34,8 @@ If B is NULL, nothing is done. =head1 RETURN VALUES -BN_new() returns a pointer to the B. If the allocation fails, +BN_new() returns a pointer to the B initialised to the value 0. +If the allocation fails, it returns B and sets an error code that can be obtained by L.