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:
Bernard Spil 2017-04-24 18:43:49 +02:00 committed by Richard Levitte
parent f7b3cb2ad0
commit 65d62488b8

View File

@ -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);