diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-11 18:21:40 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-11 18:21:40 +0000 |
commit | 15181d7811c7f1bc22cbbac433d147782d6fdecf (patch) | |
tree | 7cf65cb872251470eefd86026b583984dc2b9d9a /apps | |
parent | 1edba2110f6801f28c9f65c843921ef66297cc39 (diff) |
Write parameters if -genparam option include.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/genpkey.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/genpkey.c b/apps/genpkey.c index e2e9c5635c..453dd500c0 100644 --- a/apps/genpkey.c +++ b/apps/genpkey.c @@ -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) |