aboutsummaryrefslogtreecommitdiff
path: root/doc/crypto/BIO_s_mem.pod
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2016-01-30 20:38:08 -0500
committerRich Salz <rsalz@openssl.org>2016-01-31 14:05:13 -0500
commit8ab31975bacb9c907261088937d3aa4102e3af84 (patch)
tree5c607508997ae2699e088446a2bd40f199fc6dfb /doc/crypto/BIO_s_mem.pod
parent0e87e05816d3e4b66ea7904634095aad5f6f325f (diff)
downloadopenssl-8ab31975bacb9c907261088937d3aa4102e3af84.zip
openssl-8ab31975bacb9c907261088937d3aa4102e3af84.tar.gz
openssl-8ab31975bacb9c907261088937d3aa4102e3af84.tar.bz2
RT4129: BUF_new_mem_buf should take const void *
Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'doc/crypto/BIO_s_mem.pod')
-rw-r--r--doc/crypto/BIO_s_mem.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/crypto/BIO_s_mem.pod b/doc/crypto/BIO_s_mem.pod
index 1aa7e6e..b9ce5da 100644
--- a/doc/crypto/BIO_s_mem.pod
+++ b/doc/crypto/BIO_s_mem.pod
@@ -17,7 +17,7 @@ BIO_get_mem_ptr, BIO_new_mem_buf - memory BIO
BIO_set_mem_buf(BIO *b,BUF_MEM *bm,int c)
BIO_get_mem_ptr(BIO *b,BUF_MEM **pp)
- BIO *BIO_new_mem_buf(void *buf, int len);
+ BIO *BIO_new_mem_buf(const void *buf, int len);
=head1 DESCRIPTION
@@ -65,7 +65,7 @@ BIO_get_mem_ptr() places the underlying BUF_MEM structure in B<pp>. It is
a macro.
BIO_new_mem_buf() creates a memory BIO using B<len> bytes of data at B<buf>,
-if B<len> is -1 then the B<buf> is assumed to be null terminated and its
+if B<len> is -1 then the B<buf> is assumed to be nul terminated and its
length is determined by B<strlen>. The BIO is set to a read only state and
as a result cannot be written to. This is useful when some data needs to be
made available from a static area of memory in the form of a BIO. The