summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2022-02-19 16:00:14 +0000
committerjsing <>2022-02-19 16:00:14 +0000
commit442d44388d1decd61ea78c89db2829f9e63c6082 (patch)
treec5fc049c5814b278e5f308e30b231d9e044484ac /src
parent25a9629e43e037feecbfc10137ec9671aac8194a (diff)
downloadopenbsd-442d44388d1decd61ea78c89db2829f9e63c6082.tar.gz
openbsd-442d44388d1decd61ea78c89db2829f9e63c6082.tar.bz2
openbsd-442d44388d1decd61ea78c89db2829f9e63c6082.zip
Remove references to performance issues caused by frequent memmove().
ok inoguchi@ tb@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/BIO_s_mem.315
1 files changed, 2 insertions, 13 deletions
diff --git a/src/lib/libcrypto/man/BIO_s_mem.3 b/src/lib/libcrypto/man/BIO_s_mem.3
index 89a9d55df1..f2522a8065 100644
--- a/src/lib/libcrypto/man/BIO_s_mem.3
+++ b/src/lib/libcrypto/man/BIO_s_mem.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: BIO_s_mem.3,v 1.14 2019/06/06 01:06:58 schwarze Exp $ 1.\" $OpenBSD: BIO_s_mem.3,v 1.15 2022/02/19 16:00:14 jsing Exp $
2.\" full merge up to: 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 36359cec Mar 7 14:37:23 2018 +0100 3.\" selective merge up to: OpenSSL 36359cec Mar 7 14:37:23 2018 +0100
4.\" 4.\"
@@ -49,7 +49,7 @@
49.\" 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
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: June 6 2019 $ 52.Dd $Mdocdate: February 19 2022 $
53.Dt BIO_S_MEM 3 53.Dt BIO_S_MEM 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -199,14 +199,6 @@ until the BIO is freed.
199.Pp 199.Pp
200Writes to memory BIOs will always succeed if memory is available: 200Writes to memory BIOs will always succeed if memory is available:
201their size can grow indefinitely. 201their size can grow indefinitely.
202.Pp
203Every read from a read/write memory BIO will remove the data just read
204with an internal copy operation.
205If a BIO contains a lot of data and it is read in small chunks,
206the operation can be very slow.
207The use of a read only memory BIO avoids this problem.
208If the BIO must be read/write then adding a buffering BIO
209to the chain will speed up the process.
210.Sh RETURN VALUES 202.Sh RETURN VALUES
211.Fn BIO_s_mem 203.Fn BIO_s_mem
212returns a pointer to a static object. 204returns a pointer to a static object.
@@ -275,6 +267,3 @@ There should be an option to set the maximum size of a memory BIO.
275.Pp 267.Pp
276There should be a way to "rewind" a read/write BIO without destroying 268There should be a way to "rewind" a read/write BIO without destroying
277its contents. 269its contents.
278.Pp
279The copying operation should not occur after every small read
280of a large BIO to improve efficiency.