From 3befffa39dbaf2688d823fcf2bdfc07d2487be48 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 20 Oct 2016 15:18:39 +0100 Subject: 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 --- include/internal/bio.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/internal') 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); -- cgit v1.2.3