aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/asn1_attribute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/asn1/asn1_attribute.cpp')
-rw-r--r--src/lib/asn1/asn1_attribute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/asn1/asn1_attribute.cpp b/src/lib/asn1/asn1_attribute.cpp
index 8ecd8fd5f..1f07bbd4b 100644
--- a/src/lib/asn1/asn1_attribute.cpp
+++ b/src/lib/asn1/asn1_attribute.cpp
@@ -25,7 +25,7 @@ Attribute::Attribute(const OID& attr_oid, const std::vector<uint8_t>& attr_value
*/
Attribute::Attribute(const std::string& attr_oid,
const std::vector<uint8_t>& attr_value) :
- oid(OIDS::lookup(attr_oid)),
+ oid(OIDS::str2oid_or_throw(attr_oid)),
parameters(attr_value)
{}