diff options
author | Ed Tanous <ed@tanous.net> | 2024-01-03 00:16:50 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-01-09 20:44:00 +0300 |
commit | 8ece0e457ee994e54c23ee7393fbce831d81a954 (patch) | |
tree | d673c8d7c744c2057a7250e4027e82249480c2fe /include/ssl_key_handler.hpp | |
parent | f3cb5df94799e94df37f9e2e6c2fcc473e0cae4a (diff) | |
download | bmcweb-8ece0e457ee994e54c23ee7393fbce831d81a954.tar.xz |
Fix spelling mistakes
These were found with:
codespell -w $(git ls-files | grep "\.[hc]\(pp\)\?$")
At some point in the future, we might want to get this enabled in CI.
Change-Id: Iccb57b2adfd06a2e177e99db2923fe4e8e329118
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include/ssl_key_handler.hpp')
-rw-r--r-- | include/ssl_key_handler.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp index f8142cf24b..5ce7cc7a41 100644 --- a/include/ssl_key_handler.hpp +++ b/include/ssl_key_handler.hpp @@ -204,7 +204,7 @@ inline X509* loadCert(const std::string& filePath) BIO* certFileBio = BIO_new_file(filePath.c_str(), "rb"); if (certFileBio == nullptr) { - BMCWEB_LOG_ERROR("Error occured during BIO_new_file call, FILE= {}", + BMCWEB_LOG_ERROR("Error occurred during BIO_new_file call, FILE= {}", filePath); return nullptr; } @@ -212,7 +212,7 @@ inline X509* loadCert(const std::string& filePath) X509* cert = X509_new(); if (cert == nullptr) { - BMCWEB_LOG_ERROR("Error occured during X509_new call, {}", + BMCWEB_LOG_ERROR("Error occurred during X509_new call, {}", ERR_get_error()); BIO_free(certFileBio); return nullptr; @@ -221,7 +221,7 @@ inline X509* loadCert(const std::string& filePath) if (PEM_read_bio_X509(certFileBio, &cert, nullptr, nullptr) == nullptr) { BMCWEB_LOG_ERROR( - "Error occured during PEM_read_bio_X509 call, FILE= {}", filePath); + "Error occurred during PEM_read_bio_X509 call, FILE= {}", filePath); BIO_free(certFileBio); X509_free(cert); @@ -266,7 +266,7 @@ inline void generateSslCertificate(const std::string& filepath, if (x509 != nullptr) { // get a random number from the RNG for the certificate serial - // number If this is not random, regenerating certs throws broswer + // number If this is not random, regenerating certs throws browser // errors bmcweb::OpenSSLGenerator gen; std::uniform_int_distribution<int> dis( |