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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/x509/x509opt.cpp b/src/lib/x509/x509opt.cpp
index 723d57742..f762acd7b 100644
--- a/src/lib/x509/x509opt.cpp
+++ b/src/lib/x509/x509opt.cpp
@@ -6,7 +6,6 @@
*/
#include <botan/x509self.h>
-#include <botan/oids.h>
#include <botan/parsing.h>
#include <chrono>
@@ -49,7 +48,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::str2oid_or_throw(oid_str));
+ ex_constraints.push_back(OID::from_string(oid_str));
}
/*