From: Shane Lontis Date: Tue, 19 Mar 2019 22:13:55 +0000 (+1000) Subject: Updated doc for BN_clear, BN_CTX_end when param is NULL X-Git-Tag: openssl-3.0.0-alpha1~2322 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=138ef774fedb567b29d6e5a96541a396cadc6135;p=oweals%2Fopenssl.git Updated doc for BN_clear, BN_CTX_end when param is NULL Reviewed-by: Paul Dale Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8532) --- diff --git a/doc/man3/BN_CTX_start.pod b/doc/man3/BN_CTX_start.pod index bf3a8b59ad..d4780fe9cd 100644 --- a/doc/man3/BN_CTX_start.pod +++ b/doc/man3/BN_CTX_start.pod @@ -27,6 +27,7 @@ calls must be made before calling any other functions that use the B as an argument. Finally, BN_CTX_end() must be called before returning from the function. +If B is NULL, nothing is done. When BN_CTX_end() is called, the B pointers obtained from BN_CTX_get() become invalid. diff --git a/doc/man3/BN_new.pod b/doc/man3/BN_new.pod index e3800b82b7..e7269e0176 100644 --- a/doc/man3/BN_new.pod +++ b/doc/man3/BN_new.pod @@ -27,6 +27,7 @@ OPENSSL_secure_malloc(3) is used to store the value. BN_clear() is used to destroy sensitive data such as keys when they are no longer needed. It erases the memory used by B and sets it to the value 0. +If B is NULL, nothing is done. BN_free() frees the components of the B, and if it was created by BN_new(), also the structure itself. BN_clear_free() additionally