openssl enc: Don't unbuffer stdin
authorBernard Spil <brnrd@FreeBSD.org>
Mon, 24 Apr 2017 16:43:49 +0000 (18:43 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 25 Apr 2017 13:03:50 +0000 (15:03 +0200)
 - 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)
(cherry picked from commit 65d62488b8c808350f440d2276034f5223b391ad)

apps/enc.c

index b11d553205d7e4d87711376fc751ed0f08e8ac11..c906563311f278591acababbc850a85a8f5e88ee 100644 (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);