summaryrefslogtreecommitdiffstats
path: root/apps/spkac.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-09-04 12:49:06 +0200
committerRichard Levitte <levitte@openssl.org>2015-09-06 01:35:54 +0200
commitbdd58d98467e9f0f6635c1628e1eae304383afb1 (patch)
tree1927fc4a65f8fd8b5705c5c5e0278beabf2c2b28 /apps/spkac.c
parentMake the handling of output and input formats consistent (diff)
downloadopenssl-bdd58d98467e9f0f6635c1628e1eae304383afb1.tar.xz
openssl-bdd58d98467e9f0f6635c1628e1eae304383afb1.zip
Change the way apps open their input and output files
The different apps had the liberty to decide whether they would open their input and output files in binary mode or not, which could be confusing if two different apps were handling the same type of file in different ways. The solution is to centralise the decision of low level file organisation, and that the apps would use a selection of formats to state the intent of the file. Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps/spkac.c')
-rw-r--r--apps/spkac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/spkac.c b/apps/spkac.c
index d41331caba..180f80fcb7 100644
--- a/apps/spkac.c
+++ b/apps/spkac.c
@@ -175,7 +175,7 @@ int spkac_main(int argc, char **argv)
NETSCAPE_SPKI_sign(spki, pkey, EVP_md5());
spkstr = NETSCAPE_SPKI_b64_encode(spki);
- out = bio_open_default(outfile, "w");
+ out = bio_open_default(outfile, 'w', FORMAT_TEXT);
if (out == NULL)
goto end;
BIO_printf(out, "SPKAC=%s\n", spkstr);
@@ -205,7 +205,7 @@ int spkac_main(int argc, char **argv)
goto end;
}
- out = bio_open_default(outfile, "w");
+ out = bio_open_default(outfile, 'w', FORMAT_TEXT);
if (out == NULL)
goto end;