summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-10-20 15:18:39 +0100
committerMatt Caswell <matt@openssl.org>2016-10-28 09:48:54 +0100
commit3befffa39dbaf2688d823fcf2bdfc07d2487be48 (patch)
tree6fcba25e3d78c48e8c00966a8085b83472395ae1 /crypto/evp
parentd07aee2c7a33e77d97d8e13811af3637e3849cb2 (diff)
Create BIO_write_ex() which handles size_t arguments
Also extend BIO_METHOD to be able to supply an implementation for the new BIO_write_ex function. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/bio_b64.c2
-rw-r--r--crypto/evp/bio_enc.c2
-rw-r--r--crypto/evp/bio_md.c2
-rw-r--r--crypto/evp/bio_ok.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/crypto/evp/bio_b64.c b/crypto/evp/bio_b64.c
index 2647be0233..4f0e19eed3 100644
--- a/crypto/evp/bio_b64.c
+++ b/crypto/evp/bio_b64.c
@@ -48,6 +48,8 @@ typedef struct b64_struct {
static const BIO_METHOD methods_b64 = {
BIO_TYPE_BASE64, "base64 encoding",
+ /* TODO: Convert to new style write function */
+ bwrite_conv,
b64_write,
/* TODO: Convert to new style read function */
bread_conv,
diff --git a/crypto/evp/bio_enc.c b/crypto/evp/bio_enc.c
index fff3e2735e..7d596e0f48 100644
--- a/crypto/evp/bio_enc.c
+++ b/crypto/evp/bio_enc.c
@@ -47,6 +47,8 @@ typedef struct enc_struct {
static const BIO_METHOD methods_enc = {
BIO_TYPE_CIPHER, "cipher",
+ /* TODO: Convert to new style write function */
+ bwrite_conv,
enc_write,
/* TODO: Convert to new style read function */
bread_conv,
diff --git a/crypto/evp/bio_md.c b/crypto/evp/bio_md.c
index 7c61d0f3c0..c9e38583d2 100644
--- a/crypto/evp/bio_md.c
+++ b/crypto/evp/bio_md.c
@@ -33,6 +33,8 @@ static long md_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
static const BIO_METHOD methods_md = {
BIO_TYPE_MD, "message digest",
+ /* TODO: Convert to new style write function */
+ bwrite_conv,
md_write,
/* TODO: Convert to new style read function */
bread_conv,
diff --git a/crypto/evp/bio_ok.c b/crypto/evp/bio_ok.c
index 0a15680c4b..47228465c5 100644
--- a/crypto/evp/bio_ok.c
+++ b/crypto/evp/bio_ok.c
@@ -109,6 +109,8 @@ typedef struct ok_struct {
static const BIO_METHOD methods_ok = {
BIO_TYPE_CIPHER, "reliable",
+ /* TODO: Convert to new style write function */
+ bwrite_conv,
ok_write,
/* TODO: Convert to new style read function */
bread_conv,