diff options
author | Bernard Spil <brnrd@FreeBSD.org> | 2017-04-24 18:43:49 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-04-25 15:03:11 +0200 |
commit | 65d62488b8c808350f440d2276034f5223b391ad (patch) | |
tree | 65825d4f26f7efaf45a14b1d5f7bb585decaf02e /apps/enc.c | |
parent | f7b3cb2ad0fac9d5ea0025c4d84ff4603a78b64e (diff) |
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)
Diffstat (limited to 'apps/enc.c')
-rw-r--r-- | apps/enc.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |