aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-10 18:38:46 +0000
committerlloyd <[email protected]>2008-11-10 18:38:46 +0000
commita2d09f5c05837ab8b77079193c87037d5a3b3c11 (patch)
treeb57a0f4e5ed147deef92734528330cf11806fe84 /src
parenta4b0a95b2b0b61a33a11e3ee5c120e7bb9ced8ac (diff)
In SCAN_Name, keep track of the original inputs and make them accessible
Diffstat (limited to 'src')
-rw-r--r--src/utils/scan_name.cpp3
-rw-r--r--src/utils/scan_name.h3
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;
};