diff options
Diffstat (limited to 'apps/x509.c')
-rw-r--r-- | apps/x509.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |