Change the way apps open their input and output files
authorRichard Levitte <levitte@openssl.org>
Fri, 4 Sep 2015 10:49:06 +0000 (12:49 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 5 Sep 2015 23:35:54 +0000 (01:35 +0200)
commitbdd58d98467e9f0f6635c1628e1eae304383afb1
tree1927fc4a65f8fd8b5705c5c5e0278beabf2c2b28
parentd303b9d85e1888494785f87ebd9bd233e63564a9
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>
36 files changed:
apps/apps.c
apps/apps.h
apps/asn1pars.c
apps/ca.c
apps/cms.c
apps/crl.c
apps/crl2p7.c
apps/dgst.c
apps/dhparam.c
apps/dsa.c
apps/dsaparam.c
apps/ec.c
apps/ecparam.c
apps/enc.c
apps/gendsa.c
apps/genpkey.c
apps/genrsa.c
apps/nseq.c
apps/ocsp.c
apps/openssl.c
apps/passwd.c
apps/pkcs12.c
apps/pkcs7.c
apps/pkcs8.c
apps/pkey.c
apps/pkeyparam.c
apps/pkeyutl.c
apps/rand.c
apps/req.c
apps/rsa.c
apps/rsautl.c
apps/sess_id.c
apps/smime.c
apps/spkac.c
apps/ts.c
apps/x509.c