From: Bernard Spil Date: Mon, 24 Apr 2017 16:43:49 +0000 (+0200) Subject: openssl enc: Don't unbuffer stdin X-Git-Tag: OpenSSL_1_1_1-pre1~1685 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=65d62488b8c808350f440d2276034f5223b391ad openssl enc: Don't unbuffer stdin - unbuffer causes single-byte reads from stdin and poor performance Fixes #3281 CLA: trivial Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3299) --- diff --git a/apps/enc.c b/apps/enc.c index a1b2b3cac8..157cb943b6 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -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);