aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/alg_id.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/asn1/alg_id.cpp')
-rw-r--r--src/lib/asn1/alg_id.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/asn1/alg_id.cpp b/src/lib/asn1/alg_id.cpp
index b475865b5..4839303db 100644
--- a/src/lib/asn1/alg_id.cpp
+++ b/src/lib/asn1/alg_id.cpp
@@ -26,7 +26,7 @@ AlgorithmIdentifier::AlgorithmIdentifier(const OID& alg_id,
*/
AlgorithmIdentifier::AlgorithmIdentifier(const std::string& alg_id,
const std::vector<uint8_t>& param) :
- AlgorithmIdentifier(OIDS::str2oid_or_throw(alg_id), param)
+ AlgorithmIdentifier(OID::from_string(alg_id), param)
{}
/*
@@ -48,7 +48,7 @@ AlgorithmIdentifier::AlgorithmIdentifier(const OID& alg_id,
*/
AlgorithmIdentifier::AlgorithmIdentifier(const std::string& alg_id,
Encoding_Option option) :
- oid(OIDS::str2oid_or_throw(alg_id)),
+ oid(OID::from_string(alg_id)),
parameters()
{
const uint8_t DER_NULL[] = { 0x05, 0x00 };