X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2Fx509.c;h=8020e8a086a2ec98a3cb1a3a8428b733494b32ae;hb=d303b9d85e1888494785f87ebd9bd233e63564a9;hp=acce9e9ddd2629699a56deeaaca28ba4afa7987c;hpb=e9daa8150abc8d96dd1e4dcd764355851f06ef2b;p=openssl.git diff --git a/apps/x509.c b/apps/x509.c index acce9e9ddd..8020e8a086 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -496,7 +496,7 @@ int x509_main(int argc, char **argv) if (!app_load_modules(NULL)) goto end; - out = bio_open_default(outfile, "w"); + out = bio_open_default(outfile, WB(outformat)); if (out == NULL) goto end; @@ -556,7 +556,7 @@ int x509_main(int argc, char **argv) BIO_printf(bio_err, "We need a private key to sign with\n"); goto end; } - in = bio_open_default(infile, "r"); + in = bio_open_default(infile, RB(informat)); if (in == NULL) goto end; req = PEM_read_bio_X509_REQ(in, NULL, NULL, NULL);