GH408 follow-on: update buflen
[openssl.git] / apps / genrsa.c
index bb8437fa4881c74416c2e985c228a38c52491b72..54484b5273c0d8af02d478716eabe2b4edfe8656 100644 (file)
@@ -141,6 +141,7 @@ int genrsa_main(int argc, char **argv)
             break;
         case OPT_OUT:
             outfile = opt_arg();
+            break;
         case OPT_ENGINE:
             e = setup_engine(opt_arg(), 0);
             break;
@@ -171,7 +172,7 @@ int genrsa_main(int argc, char **argv)
     if (!app_load_modules(NULL))
         goto end;
 
-    out = bio_open_owner(outfile, "w", private);
+    out = bio_open_owner(outfile, FORMAT_PEM, private);
     if (out == NULL)
         goto end;