diff options
author | lloyd <[email protected]> | 2013-12-25 22:15:32 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-12-25 22:15:32 +0000 |
commit | e4987a3b83a6ae95fee839ab84c70f1f1da2bc88 (patch) | |
tree | 2947466e739f10ddba30a85a6db11cb62941acf6 /src/libstate/scan_name.h | |
parent | e72c0d999d0784ce2610e4bed471f4483da72943 (diff) |
Move add_alias and deref_alias from Library_State to SCAN_Name
Diffstat (limited to 'src/libstate/scan_name.h')
-rw-r--r-- | src/libstate/scan_name.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstate/scan_name.h b/src/libstate/scan_name.h index 3e1728f29..608bae16f 100644 --- a/src/libstate/scan_name.h +++ b/src/libstate/scan_name.h @@ -11,6 +11,8 @@ #include <botan/types.h> #include <string> #include <vector> +#include <mutex> +#include <map> namespace Botan { @@ -86,7 +88,13 @@ class BOTAN_DLL SCAN_Name std::string cipher_mode_pad() const { return (mode_info.size() >= 2) ? mode_info[1] : ""; } + static void add_alias(const std::string& alias, const std::string& basename); + + static std::string deref_alias(const std::string& alias); private: + static std::mutex s_alias_map_mutex; + static std::map<std::string, std::string> s_alias_map; + std::string orig_algo_spec; std::string alg_name; std::vector<std::string> args; |