diff options
Diffstat (limited to 'src/lib/misc/srp6')
-rw-r--r-- | src/lib/misc/srp6/srp6_files.cpp | 6 | ||||
-rw-r--r-- | src/lib/misc/srp6/srp6_files.h | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/misc/srp6/srp6_files.cpp b/src/lib/misc/srp6/srp6_files.cpp index c028767ad..14ab1ac61 100644 --- a/src/lib/misc/srp6/srp6_files.cpp +++ b/src/lib/misc/srp6/srp6_files.cpp @@ -45,7 +45,7 @@ SRP6_Authenticator_File::SRP6_Authenticator_File(const std::string& filename) else continue; // unknown group, ignored - entries[username] = SRP6_Data(v, salt, group_id); + m_entries[username] = SRP6_Data(v, salt, group_id); } } @@ -54,9 +54,9 @@ bool SRP6_Authenticator_File::lookup_user(const std::string& username, std::vector<byte>& salt, std::string& group_id) const { - std::map<std::string, SRP6_Data>::const_iterator i = entries.find(username); + std::map<std::string, SRP6_Data>::const_iterator i = m_entries.find(username); - if(i == entries.end()) + if(i == m_entries.end()) return false; v = i->second.v; diff --git a/src/lib/misc/srp6/srp6_files.h b/src/lib/misc/srp6/srp6_files.h index 45c3b0bfe..a3b979b87 100644 --- a/src/lib/misc/srp6/srp6_files.h +++ b/src/lib/misc/srp6/srp6_files.h @@ -40,12 +40,17 @@ class BOTAN_DLL SRP6_Authenticator_File const std::string& group_id) : v(v), salt(salt), group_id(group_id) {} + // public member variable: BigInt v; + + // public member variable: std::vector<byte> salt; + + // public member variable: std::string group_id; }; - std::map<std::string, SRP6_Data> entries; + std::map<std::string, SRP6_Data> m_entries; }; } |