diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2023-05-10 15:51:34 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2023-05-11 00:18:24 +0300 |
commit | 89492a157c9cf972b342421e24d41fd382510251 (patch) | |
tree | 64ed25f427f1ab1981f8c2bdcbfbc7fde5db80e9 /include/ssl_key_handler.hpp | |
parent | cddbf3df0ea0b78521b62f30f2ce764c6619018a (diff) | |
download | bmcweb-89492a157c9cf972b342421e24d41fd382510251.tar.xz |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I75f89d2959b0f1338c20d72ad669fbdc1d720835
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'include/ssl_key_handler.hpp')
-rw-r--r-- | include/ssl_key_handler.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp index 73d0b83590..71528417de 100644 --- a/include/ssl_key_handler.hpp +++ b/include/ssl_key_handler.hpp @@ -21,8 +21,8 @@ namespace ensuressl { -constexpr char const* trustStorePath = "/etc/ssl/certs/authority"; -constexpr char const* x509Comment = "Generated from OpenBMC service"; +constexpr const char* trustStorePath = "/etc/ssl/certs/authority"; +constexpr const char* x509Comment = "Generated from OpenBMC service"; static void initOpenssl(); static EVP_PKEY* createEcKey(); @@ -144,8 +144,8 @@ inline bool verifyOpensslKeyCert(const std::string& filepath) } } #else - EVP_PKEY_CTX* pkeyCtx = - EVP_PKEY_CTX_new_from_pkey(nullptr, pkey, nullptr); + EVP_PKEY_CTX* pkeyCtx = EVP_PKEY_CTX_new_from_pkey(nullptr, pkey, + nullptr); if (pkeyCtx == nullptr) { @@ -158,7 +158,6 @@ inline bool verifyOpensslKeyCert(const std::string& filepath) } else { - std::cerr << "Key not valid error number " << ERR_get_error() << "\n"; } |