diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/scan_name.cpp | 3 | ||||
-rw-r--r-- | src/utils/scan_name.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/scan_name.cpp b/src/utils/scan_name.cpp index 77e15fa07..4949a8ee8 100644 --- a/src/utils/scan_name.cpp +++ b/src/utils/scan_name.cpp @@ -13,6 +13,9 @@ namespace Botan { SCAN_Name::SCAN_Name(const std::string& algo_spec, const std::string& prov_names) { + orig_algo_spec = algo_spec; + orig_providers = prov_names; + name = parse_algorithm_name(algo_spec); for(u32bit i = 0; i != name.size(); ++i) name[i] = global_state().deref_alias(name[i]); diff --git a/src/utils/scan_name.h b/src/utils/scan_name.h index d311af2a8..06f0cc571 100644 --- a/src/utils/scan_name.h +++ b/src/utils/scan_name.h @@ -61,7 +61,10 @@ class SCAN_Name */ u32bit argument_as_u32bit(u32bit i, u32bit def_value) const; + std::string as_string() const { return orig_algo_spec; } + std::string providers_string() const { return orig_providers; } private: + std::string orig_algo_spec, orig_providers; std::vector<std::string> name; std::set<std::string> providers; }; |