Make the handling of output and input formats consistent
[openssl.git] / apps / pkey.c
index 80c2e154dd31d9a10dc21077cae69fce444313b8..9ef228f3a0934def409426a094aa3f2e664fcc9c 100644 (file)
@@ -172,7 +172,7 @@ int pkey_main(int argc, char **argv)
     if (!app_load_modules(NULL))
         goto end;
 
-    out = bio_open_owner(outfile, "wb", private);
+    out = bio_open_owner(outfile, WB(outformat), private);
     if (out == NULL)
         goto end;