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>
diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp
index 067b0dc..abb1c94 100644
--- a/include/ssl_key_handler.hpp
+++ b/include/ssl_key_handler.hpp
@@ -144,15 +144,15 @@
}
}
#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 @@
}
#if (OPENSSL_VERSION_NUMBER > 0x30000000L)
- EVP_PKEY_CTX_free(pkey_ctx);
+ EVP_PKEY_CTX_free(pkeyCtx);
#endif
EVP_PKEY_free(pkey);
}