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 <tjh@openssl.org>
This commit is contained in:
Richard Levitte
2015-09-04 02:46:47 +02:00
parent e9daa8150a
commit d303b9d85e
18 changed files with 37 additions and 41 deletions

View File

@@ -764,7 +764,8 @@ int req_main(int argc, char **argv)
out = bio_open_default(outfile,
keyout != NULL && outfile != NULL &&
strcmp(keyout, outfile) == 0 ? "a" : "w");
strcmp(keyout, outfile) == 0
? AB(outformat) : WB(outformat));
if (out == NULL)
goto end;