diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2022-01-04 23:50:18 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2022-01-04 23:52:41 +0300 |
commit | 91359f9d36f16e5d887a40227d2b0af17da618e4 (patch) | |
tree | e36ae55ae3f5aba5a30cc2f75f318af3c70221fd /include | |
parent | 85ffe86a60f50ce9ad5728caf384a0dd0c8cc6a5 (diff) | |
download | bmcweb-91359f9d36f16e5d887a40227d2b0af17da618e4.tar.xz |
Make clang-tidy pass
CI is failing on master due to clang-tidy failing for:
error: invalid case style for variable 'pkey_ctx'
[readability-identifier-naming,-warnings-as-errors]
EVP_PKEY_CTX* pkey_ctx =
^~~~~~~~
pkeyCtx
Change variable name to make clang-tidy happy.
This was introduced in 145bb764.
Tested: None. CI passing will validate clang-tidy passing.
Change-Id: Iedd8a40a871940066743ff8698dad53bfb0407c0
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ssl_key_handler.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp index 067b0dc9be..abb1c94917 100644 --- a/include/ssl_key_handler.hpp +++ b/include/ssl_key_handler.hpp @@ -144,15 +144,15 @@ inline bool verifyOpensslKeyCert(const std::string& filepath) } } #else - EVP_PKEY_CTX* pkey_ctx = + EVP_PKEY_CTX* pkeyCtx = EVP_PKEY_CTX_new_from_pkey(nullptr, pkey, nullptr); - if (!pkey_ctx) + if (!pkeyCtx) { - std::cerr << "Unable to allocate pkey_ctx " << ERR_get_error() + std::cerr << "Unable to allocate pkeyCtx " << ERR_get_error() << "\n"; } - else if (EVP_PKEY_check(pkey_ctx) == 1) + else if (EVP_PKEY_check(pkeyCtx) == 1) { privateKeyValid = true; } @@ -186,7 +186,7 @@ inline bool verifyOpensslKeyCert(const std::string& filepath) } #if (OPENSSL_VERSION_NUMBER > 0x30000000L) - EVP_PKEY_CTX_free(pkey_ctx); + EVP_PKEY_CTX_free(pkeyCtx); #endif EVP_PKEY_free(pkey); } |