Add new filter BIO BIO_f_readbuffer()
authorShane Lontis <shane.lontis@oracle.com>
Tue, 9 Mar 2021 07:25:26 +0000 (17:25 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Wed, 10 Mar 2021 21:57:31 +0000 (07:57 +1000)
commita30823c80f8c1f4ac22fb358cab65ce4e81a5046
tree4932e6285f6fc31b31097ce448c510d5f45530e8
parentc8511e89804749e82d1212fba1dc06c86a266ee4
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 <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14407)
CHANGES.md
crypto/bio/bf_readbuff.c [new file with mode: 0644]
crypto/bio/build.info
doc/build.info
doc/man3/BIO_f_readbuffer.pod [new file with mode: 0644]
doc/man7/bio.pod
include/openssl/bio.h.in