aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/ec_group/ec_group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/ec_group/ec_group.cpp')
-rw-r--r--src/lib/pubkey/ec_group/ec_group.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/ec_group/ec_group.cpp b/src/lib/pubkey/ec_group/ec_group.cpp
index 2067d57c4..95a56e473 100644
--- a/src/lib/pubkey/ec_group/ec_group.cpp
+++ b/src/lib/pubkey/ec_group/ec_group.cpp
@@ -361,8 +361,8 @@ EC_Group::EC_Group(const std::string& str)
try
{
- OID oid = OIDS::lookup(str);
- if(oid.empty() == false)
+ OID oid = OIDS::str2oid_or_empty(str);
+ if(oid.has_value())
m_data = ec_group_data().lookup(oid);
}
catch(Invalid_OID&)