From d303b9d85e1888494785f87ebd9bd233e63564a9 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 4 Sep 2015 02:46:47 +0200 Subject: Make the handling of output and input formats consistent Most of all, we needed to sort out which ones are binary and which ones are text, and make sure they are treated accordingly and consistently so Reviewed-by: Tim Hudson --- apps/dsaparam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/dsaparam.c') diff --git a/apps/dsaparam.c b/apps/dsaparam.c index 8d48313d2b..d61bb70a70 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -195,10 +195,10 @@ int dsaparam_main(int argc, char **argv) } private = genkey ? 1 : 0; - in = bio_open_default(infile, "r"); + in = bio_open_default(infile, RB(informat)); if (in == NULL) goto end; - out = bio_open_owner(outfile, "w", private); + out = bio_open_owner(outfile, WB(outformat), private); if (out == NULL) goto end; -- cgit v1.2.3