Add support for -no-CApath and -no-CAfile options
[openssl.git] / apps / dhparam.c
index 2e5ce2c6d34be483c14d4eaf9023ff731b354eb9..334a129b1bf80c98d1ae00de92c2597f5e0b375e 100644 (file)
@@ -309,7 +309,7 @@ int dhparam_main(int argc, char **argv)
         app_RAND_write_file(NULL);
     } else {
 
-        in = bio_open_default(infile, RB(informat));
+        in = bio_open_default(infile, 'r', informat);
         if (in == NULL)
             goto end;
 
@@ -352,7 +352,7 @@ int dhparam_main(int argc, char **argv)
         /* dh != NULL */
     }
 
-    out = bio_open_default(outfile, "w");
+    out = bio_open_default(outfile, 'w', outformat);
     if (out == NULL)
         goto end;