Change the way apps open their input and output files
[openssl.git] / apps / nseq.c
index 5c8ed172c2cafccee21cfff3380d11306bbaf214..06893c82ce6647a41e9c220593d9954cdbbe8f3e 100644 (file)
@@ -112,10 +112,10 @@ int nseq_main(int argc, char **argv)
     if (!app_load_modules(NULL))
         goto end;
 
-    in = bio_open_default(infile, "r");
+    in = bio_open_default(infile, 'r', FORMAT_PEM);
     if (in == NULL)
         goto end;
-    out = bio_open_default(outfile, "w");
+    out = bio_open_default(outfile, 'w', FORMAT_PEM);
     if (out == NULL)
         goto end;