diff options
author | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2018-12-20 15:58:04 +0530 |
---|---|---|
committer | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2018-12-22 02:13:37 +0000 |
commit | 48e555857f81b9dcfe1ccfe7a47adde40f1f2c00 (patch) | |
tree | 6de95073d4215fecc3eb4781bc3a56840b20a232 /user_channel/passwd_mgr.cpp | |
parent | 0021f84939a8e82ae9ed04581c2c18e86d0f0b51 (diff) | |
download | phosphor-host-ipmid-48e555857f81b9dcfe1ccfe7a47adde40f1f2c00.tar.gz phosphor-host-ipmid-48e555857f81b9dcfe1ccfe7a47adde40f1f2c00.zip |
Change struct names to UpperCamelCase
Change struct names to UpperCamelCase to align with
OpenBMC coding guidelines
Change-Id: Ib71768be45e57556a26b14b64adec98db3bc7762
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'user_channel/passwd_mgr.cpp')
-rw-r--r-- | user_channel/passwd_mgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user_channel/passwd_mgr.cpp b/user_channel/passwd_mgr.cpp index c47bc6d..d4ff39f 100644 --- a/user_channel/passwd_mgr.cpp +++ b/user_channel/passwd_mgr.cpp @@ -49,7 +49,7 @@ static inline size_t blockRound(size_t odd, size_t blk) /* * Meta data struct for encrypted password file */ -struct metaPassStruct +struct MetaPassStruct { char signature[10]; unsigned char reseved[2]; @@ -278,7 +278,7 @@ int PasswdMgr::readPasswdFileData(std::vector<uint8_t>& outBytes) } // verify the signature first - metaPassStruct* metaData = reinterpret_cast<metaPassStruct*>(input.data()); + MetaPassStruct* metaData = reinterpret_cast<MetaPassStruct*>(input.data()); if (std::strncmp(metaData->signature, META_PASSWD_SIG, sizeof(metaData->signature))) { @@ -508,7 +508,7 @@ int PasswdMgr::updatePasswdSpecialFile(const std::string& userName, OPENSSL_cleanse(key.data(), keyLen); // Update the meta password structure. - metaPassStruct metaData = {META_PASSWD_SIG, {0, 0}, 0, 0, 0, 0, 0}; + MetaPassStruct metaData = {META_PASSWD_SIG, {0, 0}, 0, 0, 0, 0, 0}; metaData.hashSize = hashLen; metaData.ivSize = ivLen; metaData.dataSize = bytesWritten; |