Always use FORMAT_BINARY for infile
authorPatrik Sevallius <patrik.sevallius@assaabloy.com>
Sun, 18 Sep 2022 10:26:02 +0000 (12:26 +0200)
committerHugo Landau <hlandau@openssl.org>
Tue, 20 Sep 2022 07:19:59 +0000 (08:19 +0100)
CLA: trivial

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19234)

(cherry picked from commit 4689fe1bfd390db591ad5ab5479f06b52ac6f337)

apps/mac.c

index 5f80ca22c7879ceee0eeb090437132dfbf73c8bb..b66a69fe00968bd19ae770f9d3a6ee8cbd8fb3fd 100644 (file)
@@ -170,9 +170,6 @@ opthelp:
             goto err;
     }
 
-    /* Use text mode for stdin */
-    if (infile == NULL || strcmp(infile, "-") == 0)
-        inform = FORMAT_TEXT;
     in = bio_open_default(infile, 'r', inform);
     if (in == NULL)
         goto err;