X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=doc%2Fman3%2FBIO_s_mem.pod;h=69746dc9b0b98fe70659ae011f27a07565144487;hb=7525c930304c7814b3176d0724f271d2bbb1a09e;hp=b7c6fdf86092e9e52a25961120141ee9d8678939;hpb=39a117d17963d0cd4a8f3a3351c0844c325e905c;p=openssl.git diff --git a/doc/man3/BIO_s_mem.pod b/doc/man3/BIO_s_mem.pod index b7c6fdf860..69746dc9b0 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 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 structure on success or NULL on error. =head1 EXAMPLES