diff options
author | Matt Caswell <matt@openssl.org> | 2016-09-05 17:26:58 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-10-28 09:48:54 +0100 |
commit | d07aee2c7a33e77d97d8e13811af3637e3849cb2 (patch) | |
tree | 1c3452687dbd734f4e739713f29fbf770f5524dd /crypto/bio/bss_mem.c | |
parent | 229bd12487f8576fc088dc4f641950ac33c62033 (diff) |
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/bss_mem.c')
-rw-r--r-- | crypto/bio/bss_mem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c index 6dc075dc61..81f7fc6d9e 100644 --- a/crypto/bio/bss_mem.c +++ b/crypto/bio/bss_mem.c @@ -27,6 +27,8 @@ static const BIO_METHOD mem_method = { BIO_TYPE_MEM, "memory buffer", mem_write, + /* TODO: Convert to new style read function */ + bread_conv, mem_read, mem_puts, mem_gets, @@ -40,6 +42,8 @@ static const BIO_METHOD secmem_method = { BIO_TYPE_MEM, "secure memory buffer", mem_write, + /* TODO: Convert to new style read function */ + bread_conv, mem_read, mem_puts, mem_gets, |