diff options
author | Bodo Möller <bodo@openssl.org> | 2002-07-14 16:54:31 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-07-14 16:54:31 +0000 |
commit | 5dbd3efce784cb5621de8402430eda23d1762568 (patch) | |
tree | b9fec0675747eaab2d8a5539d3def0c16aabad3d /apps/req.c | |
parent | 876811e2af12fe7f5b05104ad2187516cff2aee2 (diff) |
Replace 'ecdsaparam' commandline utility by 'ecparam'
(the same keys can be used for ECC schemes other than ECDSA)
and add some new options.
Similarly, use string "EC PARAMETERS" instead of "ECDSA PARAMETERS"
in 'PEM' format.
Fix ec_asn1.c (take into account the desired conversion form).
'make update'.
Submitted by: Nils Larsch
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/req.c b/apps/req.c index c1575fe5e9..75a3604061 100644 --- a/apps/req.c +++ b/apps/req.c @@ -340,8 +340,12 @@ int MAIN(int argc, char **argv) perror(p); goto end; } - if ((ecdsa_params = PEM_read_bio_ECDSAParameters(in, NULL, NULL, NULL)) == NULL) + if ((ecdsa_params = ECDSA_new()) == NULL) + goto end; + if ((ecdsa_params->group = PEM_read_bio_ECPKParameters(in, NULL, NULL, NULL)) == NULL) { + if (ecdsa_params) + ECDSA_free(ecdsa_params); ERR_clear_error(); (void)BIO_reset(in); if ((xtmp=PEM_read_bio_X509(in,NULL,NULL,NULL)) == NULL) |