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_0f~53 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d746e49bcd9cc84cce13b1cd2d3ea35b909880a7;p=oweals%2Fopenssl.git 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) (cherry picked from commit 65d62488b8c808350f440d2276034f5223b391ad) --- diff --git a/apps/enc.c b/apps/enc.c index b11d553205..c906563311 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);