diff options
author | Jack Lloyd <[email protected]> | 2019-08-04 06:32:32 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-08-04 16:26:48 -0400 |
commit | b7434defb0769f1f06a7b55f5435ceb690856713 (patch) | |
tree | 6e4e86f22dc01b75db8a59ad86f8b7261791a840 /src/lib/pk_pad/emsa1 | |
parent | 67fddcd63e065eaf8bafbb15f615cbf203a305bd (diff) |
Deprecate and replace OIDS::lookup
Diffstat (limited to 'src/lib/pk_pad/emsa1')
-rw-r--r-- | src/lib/pk_pad/emsa1/emsa1.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/pk_pad/emsa1/emsa1.cpp b/src/lib/pk_pad/emsa1/emsa1.cpp index e1bc8db6e..048c3417c 100644 --- a/src/lib/pk_pad/emsa1/emsa1.cpp +++ b/src/lib/pk_pad/emsa1/emsa1.cpp @@ -111,9 +111,7 @@ AlgorithmIdentifier EMSA1::config_for_x509(const Private_Key& key, const std::string sig_name = key.algo_name() + "/" + name(); AlgorithmIdentifier sig_algo; - sig_algo.oid = OIDS::lookup(sig_name); - if(sig_algo.oid.empty()) - throw Lookup_Error("No OID defined for " + sig_name); + sig_algo.oid = OIDS::str2oid_or_throw(key.algo_name() + "/" + name()); std::string algo_name = key.algo_name(); if(algo_name == "DSA" || |