openssl/crypto/bio
Shane Lontis 251c48183b Fix DER reading from stdin for BIO_f_readbuffer
Fixes #14559

The intitial implementation of the gets() function tried using the next bio's gets() function.
For a file BIO this returned incorrect data for binary data containing 0x00.
Just buffering all data during gets() did not work however since some
applications open and close the bio multiple times when dealing with pem
files containing multiple entries.. This does not work
when reading from stdin unless the data if buffered one byte at a time.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14599)
2021-03-22 09:07:36 +10:00
..
b_addr.c Always check CRYPTO_LOCK_{read,write}_lock 2021-03-14 15:33:34 +10:00
b_dump.c
b_print.c remove unused assignments 2020-12-03 11:21:33 +10:00
b_sock2.c Update copyright year 2021-03-11 13:27:36 +00:00
b_sock.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
bf_buff.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
bf_lbuf.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
bf_nbio.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
bf_null.c
bf_prefix.c
bf_readbuff.c Fix DER reading from stdin for BIO_f_readbuffer 2021-03-22 09:07:36 +10:00
bio_cb.c
bio_err.c Update copyright year 2021-01-28 13:54:57 +01:00
bio_lib.c Update copyright year 2021-01-28 13:54:57 +01:00
bio_local.h
bio_meth.c Update copyright year 2020-11-26 14:18:57 +00:00
bss_acpt.c CRYPTO: refactor ERR_raise()+ERR_add_error_data() to ERR_raise_data() 2020-11-13 09:35:31 +01:00
bss_bio.c Update copyright year 2020-11-26 14:18:57 +00:00
bss_conn.c Update copyright year 2021-03-11 13:27:36 +00:00
bss_dgram.c Update copyright year 2020-11-26 14:18:57 +00:00
bss_fd.c Update copyright year 2021-03-11 13:27:36 +00:00
bss_file.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
bss_log.c Update copyright year 2020-11-26 14:18:57 +00:00
bss_mem.c Update copyright year 2021-01-28 13:54:57 +01:00
bss_null.c
bss_sock.c Update copyright year 2021-03-11 13:27:36 +00:00
build.info Add a real type for OSSL_CORE_BIO which is distinct from and not castable to BIO 2021-03-11 09:25:57 +10:00
core_bio.c Add a real type for OSSL_CORE_BIO which is distinct from and not castable to BIO 2021-03-11 09:25:57 +10:00