summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-11-14 17:56:45 +0000
committerschwarze <>2016-11-14 17:56:45 +0000
commitff417f99198968a47dd021ea7edfb234f3bff417 (patch)
treec4dba2f3e16a84f18ca2a5b29555480327d89d6f
parentf2a500e5bfad3bd2e33845145abfb7a05542c3b2 (diff)
downloadopenbsd-ff417f99198968a47dd021ea7edfb234f3bff417.tar.gz
openbsd-ff417f99198968a47dd021ea7edfb234f3bff417.tar.bz2
openbsd-ff417f99198968a47dd021ea7edfb234f3bff417.zip
Add Copyright and license.
In the SYNOPSIS, show function prototypes rather than macro definitions.
-rw-r--r--src/lib/libcrypto/man/BIO_f_buffer.393
1 files changed, 79 insertions, 14 deletions
diff --git a/src/lib/libcrypto/man/BIO_f_buffer.3 b/src/lib/libcrypto/man/BIO_f_buffer.3
index c673fe535e..9a7f965f49 100644
--- a/src/lib/libcrypto/man/BIO_f_buffer.3
+++ b/src/lib/libcrypto/man/BIO_f_buffer.3
@@ -1,6 +1,55 @@
1.\" $OpenBSD: BIO_f_buffer.3,v 1.4 2016/11/07 15:52:47 jmc Exp $ 1.\" $OpenBSD: BIO_f_buffer.3,v 1.5 2016/11/14 17:56:45 schwarze Exp $
2.\" OpenSSL 9b86974e Mar 19 12:32:14 2016 -0400
2.\" 3.\"
3.Dd $Mdocdate: November 7 2016 $ 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2000, 2010, 2015, 2016 The OpenSSL Project.
6.\" All rights reserved.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\"
12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer.
14.\"
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\" notice, this list of conditions and the following disclaimer in
17.\" the documentation and/or other materials provided with the
18.\" distribution.
19.\"
20.\" 3. All advertising materials mentioning features or use of this
21.\" software must display the following acknowledgment:
22.\" "This product includes software developed by the OpenSSL Project
23.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
24.\"
25.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
26.\" endorse or promote products derived from this software without
27.\" prior written permission. For written permission, please contact
28.\" openssl-core@openssl.org.
29.\"
30.\" 5. Products derived from this software may not be called "OpenSSL"
31.\" nor may "OpenSSL" appear in their names without prior written
32.\" permission of the OpenSSL Project.
33.\"
34.\" 6. Redistributions of any form whatsoever must retain the following
35.\" acknowledgment:
36.\" "This product includes software developed by the OpenSSL Project
37.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
38.\"
39.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
40.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
43.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\"
52.Dd $Mdocdate: November 14 2016 $
4.Dt BIO_F_BUFFER 3 53.Dt BIO_F_BUFFER 3
5.Os 54.Os
6.Sh NAME 55.Sh NAME
@@ -17,18 +66,30 @@
17.Fo BIO_f_buffer 66.Fo BIO_f_buffer
18.Fa void 67.Fa void
19.Fc 68.Fc
20.Bd -literal 69.Ft long
21#define BIO_get_buffer_num_lines(b) \e 70.Fo BIO_get_buffer_num_lines
22 BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL) 71.Fa "BIO *b"
23#define BIO_set_read_buffer_size(b,size) \e 72.Fc
24 BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0) 73.Ft long
25#define BIO_set_write_buffer_size(b,size) \e 74.Fo BIO_set_read_buffer_size
26 BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1) 75.Fa "BIO *b"
27#define BIO_set_buffer_size(b,size) \e 76.Fa "long size"
28 BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL) 77.Fc
29#define BIO_set_buffer_read_data(b,buf,num) \e 78.Ft long
30 BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf) 79.Fo BIO_set_write_buffer_size
31.Ed 80.Fa "BIO *b"
81.Fa "long size"
82.Fc
83.Ft long
84.Fo BIO_set_buffer_size
85.Fa "BIO *b"
86.Fa "long size"
87.Fc
88.Fo BIO_set_buffer_read_data
89.Fa "BIO *b"
90.Fa "void *buf"
91.Fa "long num"
92.Fc
32.Sh DESCRIPTION 93.Sh DESCRIPTION
33.Fn BIO_f_buffer 94.Fn BIO_f_buffer
34returns the buffering BIO method. 95returns the buffering BIO method.
@@ -73,6 +134,10 @@ If
73.Fa num 134.Fa num
74is larger than the current buffer size the buffer is expanded. 135is larger than the current buffer size the buffer is expanded.
75.Pp 136.Pp
137Except
138.Fn BIO_f_buffer ,
139these functions are implemented as macros.
140.Pp
76Buffering BIOs implement 141Buffering BIOs implement
77.Xr BIO_gets 3 142.Xr BIO_gets 3
78by using 143by using