diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-04-06 17:35:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-04-06 17:35:01 +0000 |
commit | a068a1d0e34c27b8f07eb1481081f5d153c5639c (patch) | |
tree | deb1598fc66c00a5e47e51f3ae4f71dd2cad05b0 /apps/ecparam.c | |
parent | 37b16c84bbf06a804d74e017507008fafaef9c89 (diff) |
Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert
between NIDs and the more common NIST names such as "P-256". Enhance
ecparam utility and ECC method to recognise the NIST names for curves.
(backport from HEAD)
Diffstat (limited to 'apps/ecparam.c')
-rw-r--r-- | apps/ecparam.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/ecparam.c b/apps/ecparam.c index 465480bedd..50eef797cc 100644 --- a/apps/ecparam.c +++ b/apps/ecparam.c @@ -402,6 +402,9 @@ bad: } else nid = OBJ_sn2nid(curve_name); + + if (nid == 0) + nid = EC_curve_nist2nid(curve_name); if (nid == 0) { |