projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert
[openssl.git]
/
crypto
/
ec
/
ec_pmeth.c
diff --git
a/crypto/ec/ec_pmeth.c
b/crypto/ec/ec_pmeth.c
index 66ee397d86c4137af00ba1c5966137f1fa4be367..b85f772be3c9fb1e2e104e9277cba352abe1b44d 100644
(file)
--- a/
crypto/ec/ec_pmeth.c
+++ b/
crypto/ec/ec_pmeth.c
@@
-252,7
+252,9
@@
static int pkey_ec_ctrl_str(EVP_PKEY_CTX *ctx,
if (!strcmp(type, "ec_paramgen_curve"))
{
int nid;
- nid = OBJ_sn2nid(value);
+ nid = EC_curve_nist2nid(value);
+ if (nid == NID_undef)
+ nid = OBJ_sn2nid(value);
if (nid == NID_undef)
nid = OBJ_ln2nid(value);
if (nid == NID_undef)