Change the way apps open their input and output files
[openssl.git] / apps / dsaparam.c
index d61bb70a703ff102644d48bc59eb270b0b8703d2..1ba93e603f7a2bc39fc6c1cb0d664e974c78e970 100644 (file)
@@ -195,10 +195,10 @@ int dsaparam_main(int argc, char **argv)
     }
     private = genkey ? 1 : 0;
 
-    in = bio_open_default(infile, RB(informat));
+    in = bio_open_default(infile, 'r', informat);
     if (in == NULL)
         goto end;
-    out = bio_open_owner(outfile, WB(outformat), private);
+    out = bio_open_owner(outfile, outformat, private);
     if (out == NULL)
         goto end;