summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-02-12 16:57:32 +0000
committerschwarze <>2018-02-12 16:57:32 +0000
commitcd586736a74d50ff330156d1f38d70ac21439ef9 (patch)
treea8d96324d551583a972bce17829b3fda36ece08f /src
parent58dd7db5f1b6296b8fe0df3d05b09f3fa016778a (diff)
downloadopenbsd-cd586736a74d50ff330156d1f38d70ac21439ef9.tar.gz
openbsd-cd586736a74d50ff330156d1f38d70ac21439ef9.tar.bz2
openbsd-cd586736a74d50ff330156d1f38d70ac21439ef9.zip
Add the missing RETURN VALUES section;
from Paul Yang via OpenSSL commit 1f13ad31 Dec 25 17:50:39 2017 +0800 with tweaks by me.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/BIO_s_mem.324
1 files changed, 21 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/BIO_s_mem.3 b/src/lib/libcrypto/man/BIO_s_mem.3
index bdbedc0f28..ff65c3833e 100644
--- a/src/lib/libcrypto/man/BIO_s_mem.3
+++ b/src/lib/libcrypto/man/BIO_s_mem.3
@@ -1,5 +1,6 @@
1.\" $OpenBSD: BIO_s_mem.3,v 1.5 2016/12/06 14:45:08 schwarze Exp $ 1.\" $OpenBSD: BIO_s_mem.3,v 1.6 2018/02/12 16:57:32 schwarze Exp $
2.\" OpenSSL 8711efb4 Mon Apr 20 11:33:12 2009 +0000 2.\" full merge up to: OpenSSL 8711efb4 Mon Apr 20 11:33:12 2009 +0000
3.\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800
3.\" 4.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 5.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2000 The OpenSSL Project. All rights reserved. 6.\" Copyright (c) 2000 The OpenSSL Project. All rights reserved.
@@ -48,7 +49,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 51.\"
51.Dd $Mdocdate: December 6 2016 $ 52.Dd $Mdocdate: February 12 2018 $
52.Dt BIO_S_MEM 3 53.Dt BIO_S_MEM 3
53.Os 54.Os
54.Sh NAME 55.Sh NAME
@@ -206,6 +207,23 @@ the operation can be very slow.
206The use of a read only memory BIO avoids this problem. 207The use of a read only memory BIO avoids this problem.
207If the BIO must be read/write then adding a buffering BIO 208If the BIO must be read/write then adding a buffering BIO
208to the chain will speed up the process. 209to the chain will speed up the process.
210.Sh RETURN VALUES
211.Fn BIO_s_mem
212returns a pointer to a static object.
213.Pp
214.Fn BIO_set_mem_eof_return ,
215.Fn BIO_get_mem_data ,
216.Fn BIO_set_mem_buf ,
217and
218.Fn BIO_get_mem_ptr
219return 1 on success or a value less than or equal to 0 if an error occurred.
220.Pp
221.Fn BIO_new_mem_buf
222returns a newly allocated
223.Vt BIO
224object on success or
225.Dv NULL
226on error.
209.Sh EXAMPLES 227.Sh EXAMPLES
210Create a memory BIO and write some data to it: 228Create a memory BIO and write some data to it:
211.Bd -literal -offset indent 229.Bd -literal -offset indent