summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bf_buff.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-09-05 18:26:58 +0200
committerMatt Caswell <matt@openssl.org>2016-10-28 10:48:54 +0200
commitd07aee2c7a33e77d97d8e13811af3637e3849cb2 (patch)
tree1c3452687dbd734f4e739713f29fbf770f5524dd /crypto/bio/bf_buff.c
parentFix a double free in ca command line (diff)
downloadopenssl-d07aee2c7a33e77d97d8e13811af3637e3849cb2.tar.xz
openssl-d07aee2c7a33e77d97d8e13811af3637e3849cb2.zip
Create BIO_read_ex() which handles size_t arguments
Also extend BIO_METHOD to be able to supply an implementation for the new BIO_read function. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bio/bf_buff.c')
-rw-r--r--crypto/bio/bf_buff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bio/bf_buff.c b/crypto/bio/bf_buff.c
index b2a387b53a..fc0b8fa648 100644
--- a/crypto/bio/bf_buff.c
+++ b/crypto/bio/bf_buff.c
@@ -26,6 +26,8 @@ static const BIO_METHOD methods_buffer = {
BIO_TYPE_BUFFER,
"buffer",
buffer_write,
+ /* TODO: Convert to new style read function */
+ bread_conv,
buffer_read,
buffer_puts,
buffer_gets,