aboutsummaryrefslogtreecommitdiff
path: root/apps/req.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-07-14 16:54:31 +0000
committerBodo Möller <bodo@openssl.org>2002-07-14 16:54:31 +0000
commit5dbd3efce784cb5621de8402430eda23d1762568 (patch)
treeb9fec0675747eaab2d8a5539d3def0c16aabad3d /apps/req.c
parent876811e2af12fe7f5b05104ad2187516cff2aee2 (diff)
downloadopenssl-5dbd3efce784cb5621de8402430eda23d1762568.zip
openssl-5dbd3efce784cb5621de8402430eda23d1762568.tar.gz
openssl-5dbd3efce784cb5621de8402430eda23d1762568.tar.bz2
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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/req.c b/apps/req.c
index c1575fe..75a3604 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)