From d22bc10cd4f67924acd82bcd46a31e3de3b20ce3 Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Wed, 23 Dec 2015 11:52:19 +0100 Subject: Mass-prefix member vars with m_ --- src/lib/misc/srp6/srp6_files.cpp | 6 +++--- src/lib/misc/srp6/srp6_files.h | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src/lib/misc/srp6') 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& salt, std::string& group_id) const { - std::map::const_iterator i = entries.find(username); + std::map::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 salt; + + // public member variable: std::string group_id; }; - std::map entries; + std::map m_entries; }; } -- cgit v1.2.3