aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-02-05 19:29:00 +0000
committerBodo Möller <bodo@openssl.org>2000-02-05 19:29:00 +0000
commit37e48b88adda9334fedf83e18f1bff72b4b9c8cf (patch)
treec5365692bc3f939dc08fcbcc5c09c58b4290409f /doc
parent6535eb1728a7d30673d0a95da5fd18126b7d0b71 (diff)
downloadopenssl-37e48b88adda9334fedf83e18f1bff72b4b9c8cf.tar.gz
Generate just one error code if iterated SSL_CTX_get() fails.
Avoid enabled 'assert()' in production library.
Diffstat (limited to 'doc')
-rw-r--r--doc/crypto/BN_CTX_new.pod4
-rw-r--r--doc/crypto/BN_CTX_start.pod4
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/crypto/BN_CTX_new.pod b/doc/crypto/BN_CTX_new.pod
index 2a02da03b9..c94d8c610d 100644
--- a/doc/crypto/BN_CTX_new.pod
+++ b/doc/crypto/BN_CTX_new.pod
@@ -27,6 +27,10 @@ B<BN_CTX>.
BN_CTX_free() frees the components of the B<BN_CTX>, and if it was
created by BN_CTX_new(), also the structure itself.
+If L<BN_CTX_start(3)|BN_CTX_start(3)> has been used on the B<BN_CTX>,
+L<BN_CTX_end(3)|BN_CTX_end(3)> must be called before the B<BN_CTX>
+may be freed by BN_CTX_free().
+
=head1 RETURN VALUES
diff --git a/doc/crypto/BN_CTX_start.pod b/doc/crypto/BN_CTX_start.pod
index 3e1032375f..c30552b122 100644
--- a/doc/crypto/BN_CTX_start.pod
+++ b/doc/crypto/BN_CTX_start.pod
@@ -36,7 +36,9 @@ BN_CTX_start() and BN_CTX_end() return no values.
BN_CTX_get() returns a pointer to the B<BIGNUM>, or B<NULL> on error.
Once BN_CTX_get() has failed, the subsequent calls will return B<NULL>
as well, so it is sufficient to check the return value of the last
-BN_CTX_get() call.
+BN_CTX_get() call. In case of an error, an error code is set, which
+can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>.
+
=head1 SEE ALSO