From a30823c80f8c1f4ac22fb358cab65ce4e81a5046 Mon Sep 17 00:00:00 2001 From: Shane Lontis Date: Tue, 9 Mar 2021 17:25:26 +1000 Subject: Add new filter BIO BIO_f_readbuffer() This allows BIO_tell() and BIO_seek() to work for BIO's that do not support these methods. The main use case for this is file/fd BIO's that use stdin. This works for stdin taken from input redirection (command < file), and stdin via pipe (cat file | command). Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/14407) --- include/openssl/bio.h.in | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/openssl/bio.h.in b/include/openssl/bio.h.in index 6bb4876022..3b2f7e98f5 100644 --- a/include/openssl/bio.h.in +++ b/include/openssl/bio.h.in @@ -647,6 +647,7 @@ const BIO_METHOD *BIO_s_bio(void); const BIO_METHOD *BIO_s_null(void); const BIO_METHOD *BIO_f_null(void); const BIO_METHOD *BIO_f_buffer(void); +const BIO_METHOD *BIO_f_readbuffer(void); const BIO_METHOD *BIO_f_linebuffer(void); const BIO_METHOD *BIO_f_nbio_test(void); const BIO_METHOD *BIO_f_prefix(void); -- cgit v1.2.3