diff options
Diffstat (limited to 'src/lib/asn1/alg_id.cpp')
-rw-r--r-- | src/lib/asn1/alg_id.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/asn1/alg_id.cpp b/src/lib/asn1/alg_id.cpp index 0637a8f8d..b475865b5 100644 --- a/src/lib/asn1/alg_id.cpp +++ b/src/lib/asn1/alg_id.cpp @@ -26,8 +26,7 @@ AlgorithmIdentifier::AlgorithmIdentifier(const OID& alg_id, */ AlgorithmIdentifier::AlgorithmIdentifier(const std::string& alg_id, const std::vector<uint8_t>& param) : - oid(OIDS::lookup(alg_id)), - parameters(param) + AlgorithmIdentifier(OIDS::str2oid_or_throw(alg_id), param) {} /* @@ -49,7 +48,7 @@ AlgorithmIdentifier::AlgorithmIdentifier(const OID& alg_id, */ AlgorithmIdentifier::AlgorithmIdentifier(const std::string& alg_id, Encoding_Option option) : - oid(OIDS::lookup(alg_id)), + oid(OIDS::str2oid_or_throw(alg_id)), parameters() { const uint8_t DER_NULL[] = { 0x05, 0x00 }; |