summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes <johannesp@securelogicgroup.com>2019-08-20 16:13:47 +1000
committerPauli <paul.dale@oracle.com>2019-08-20 22:01:02 +1000
commit378d53ec4d2027b6f797198eebca5e50d42959d4 (patch)
tree3d8026e50b78b245af91481c9484860eae0d2f15
parent3ff98f558157ada23a3527d82793a524eb8263ec (diff)
downloadopenssl-378d53ec4d2027b6f797198eebca5e50d42959d4.tar.gz
Correct documented return value for BIO_get_mem_data()
CLA: trivial Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/9643) (cherry picked from commit 797a5b7af9d9bbfbcbff4607c10ad5c5595ac785)
-rw-r--r--doc/man3/BIO_s_mem.pod5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/man3/BIO_s_mem.pod b/doc/man3/BIO_s_mem.pod
index 90c352b460..9d3ae21615 100644
--- a/doc/man3/BIO_s_mem.pod
+++ b/doc/man3/BIO_s_mem.pod
@@ -122,9 +122,12 @@ There should be an option to set the maximum size of a memory BIO.
BIO_s_mem() and BIO_s_secmem() return a valid memory B<BIO_METHOD> structure.
-BIO_set_mem_eof_return(), BIO_get_mem_data(), BIO_set_mem_buf() and BIO_get_mem_ptr()
+BIO_set_mem_eof_return(), BIO_set_mem_buf() and BIO_get_mem_ptr()
return 1 on success or a value which is less than or equal to 0 if an error occurred.
+BIO_get_mem_data() returns the total number of bytes available on success,
+0 if b is NULL, or a negative value in case of other errors.
+
BIO_new_mem_buf() returns a valid B<BIO> structure on success or NULL on error.
=head1 EXAMPLES