Skip to content

Commit

Permalink
Write parameters if -genparam option include.
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Apr 11, 2006
1 parent 1edba21 commit 15181d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/genpkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ int MAIN(int argc, char **argv)
}
}

if (outformat == FORMAT_PEM)
if (do_param)
PEM_write_bio_Parameters(out, pkey);
else if (outformat == FORMAT_PEM)
PEM_write_bio_PrivateKey(out, pkey, cipher, NULL, 0,
NULL, pass);
else if (outformat == FORMAT_ASN1)
Expand Down

0 comments on commit 15181d7

Please sign in to comment.