diff options
author | lloyd <[email protected]> | 2009-10-07 17:37:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-10-07 17:37:55 +0000 |
commit | 2d2cb73d20d5f08e5091147a69aa7b2b633880de (patch) | |
tree | d79417a3afc571354aa7c06da56fc222ba4ad0b4 /src/libstate/scan_name.h | |
parent | 14781861531974130e48c996f2ac18e037c9bff6 (diff) |
New parsing system for SCAN names
Diffstat (limited to 'src/libstate/scan_name.h')
-rw-r--r-- | src/libstate/scan_name.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libstate/scan_name.h b/src/libstate/scan_name.h index 6dbd67c4f..ced5f3e15 100644 --- a/src/libstate/scan_name.h +++ b/src/libstate/scan_name.h @@ -35,7 +35,7 @@ class SCAN_Name /** @return the algorithm name */ - std::string algo_name() const { return name[0]; } + std::string algo_name() const { return alg_name; } /** @return the algorithm name plus any arguments @@ -45,7 +45,7 @@ class SCAN_Name /** @return the number of arguments */ - u32bit arg_count() const { return name.size() - 1; } + u32bit arg_count() const { return args.size(); } /** @return if the number of arguments is between lower and upper @@ -77,18 +77,19 @@ class SCAN_Name @return the cipher mode (if any) */ std::string cipher_mode() const - { return (mode_str.size() >= 1) ? mode_str[0] : ""; } + { return (mode_info.size() >= 1) ? mode_info[0] : ""; } /** @return the cipher mode padding (if any) */ std::string cipher_mode_pad() const - { return (mode_str.size() >= 2) ? mode_str[1] : ""; } + { return (mode_info.size() >= 2) ? mode_info[1] : ""; } private: std::string orig_algo_spec; - std::vector<std::string> name; - std::vector<std::string> mode_str; + std::string alg_name; + std::vector<std::string> args; + std::vector<std::string> mode_info; }; } |