diff options
author | Matt Caswell <matt@openssl.org> | 2016-10-20 15:18:39 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-10-28 09:48:54 +0100 |
commit | 3befffa39dbaf2688d823fcf2bdfc07d2487be48 (patch) | |
tree | 6fcba25e3d78c48e8c00966a8085b83472395ae1 /include/internal/bio.h | |
parent | d07aee2c7a33e77d97d8e13811af3637e3849cb2 (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 'include/internal/bio.h')
-rw-r--r-- | include/internal/bio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/internal/bio.h b/include/internal/bio.h index f840bcd32c..e1fe62af3e 100644 --- a/include/internal/bio.h +++ b/include/internal/bio.h @@ -12,7 +12,8 @@ struct bio_method_st { int type; const char *name; - int (*bwrite) (BIO *, const char *, int); + int (*bwrite) (BIO *, const char *, size_t, size_t *); + int (*bwrite_old) (BIO *, const char *, int); int (*bread) (BIO *, char *, size_t, size_t *); int (*bread_old) (BIO *, char *, int); int (*bputs) (BIO *, const char *); @@ -28,4 +29,5 @@ void bio_cleanup(void); /* Old style to new style BIO_METHOD conversion functions */ +int bwrite_conv(BIO *bio, const char *in, size_t inl, size_t *written); int bread_conv(BIO *bio, char *out, size_t outl, size_t *read); |