aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/x509opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/x509/x509opt.cpp')
-rw-r--r--src/lib/x509/x509opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/x509/x509opt.cpp b/src/lib/x509/x509opt.cpp
index e31ead91f..723d57742 100644
--- a/src/lib/x509/x509opt.cpp
+++ b/src/lib/x509/x509opt.cpp
@@ -49,7 +49,7 @@ void X509_Cert_Options::add_ex_constraint(const OID& oid)
*/
void X509_Cert_Options::add_ex_constraint(const std::string& oid_str)
{
- ex_constraints.push_back(OIDS::lookup(oid_str));
+ ex_constraints.push_back(OIDS::str2oid_or_throw(oid_str));
}
/*