diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-03-20 08:13:55 +1000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-03-20 10:30:29 +0100 |
commit | 20a8bce4bb70a3c4bfc69035c703fcdf8dcbc6cf (patch) | |
tree | fda0384c5fa6b3579ceb090f1ffa12c556bbd286 /doc | |
parent | 1913df42336ab90e2f6d6c21de186f64c409e8e5 (diff) |
Updated doc for BN_clear, BN_CTX_end when param is NULL
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8532)
(cherry picked from commit 138ef774fedb567b29d6e5a96541a396cadc6135)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/BN_CTX_start.pod | 1 | ||||
-rw-r--r-- | doc/man3/BN_new.pod | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/man3/BN_CTX_start.pod b/doc/man3/BN_CTX_start.pod index 372da506d9..724398b675 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<ctx> as an argument. Finally, BN_CTX_end() must be called before returning from the function. +If B<ctx> is NULL, nothing is done. When BN_CTX_end() is called, the B<BIGNUM> pointers obtained from BN_CTX_get() become invalid. diff --git a/doc/man3/BN_new.pod b/doc/man3/BN_new.pod index 08aae5e919..7d40304a79 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<a> and sets it to the value 0. +If B<a> is NULL, nothing is done. BN_free() frees the components of the B<BIGNUM>, and if it was created by BN_new(), also the structure itself. BN_clear_free() additionally |