mirror of
https://github.com/openssl/openssl.git
synced 2024-12-16 13:33:49 +08:00
openssl enc: Don't unbuffer stdin
- unbuffer causes single-byte reads from stdin and poor performance Fixes #3281 CLA: trivial Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3299)
This commit is contained in:
parent
f7b3cb2ad0
commit
65d62488b8
@ -291,7 +291,6 @@ int enc_main(int argc, char **argv)
|
||||
buff = app_malloc(EVP_ENCODE_LENGTH(bsize), "evp buffer");
|
||||
|
||||
if (infile == NULL) {
|
||||
unbuffer(stdin);
|
||||
in = dup_bio_in(informat);
|
||||
} else
|
||||
in = bio_open_default(infile, 'r', informat);
|
||||
|
Loading…
Reference in New Issue
Block a user