diff options
author | Ed Tanous <ed@tanous.net> | 2020-09-29 00:29:23 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2020-09-29 21:38:42 +0300 |
commit | 2c70f8004afdc27bd42968b8bf7480f2e534974c (patch) | |
tree | 569f4cb0110aae2ccd0e4d197efe4c3a36c5b7b6 /redfish-core/lib/certificate_service.hpp | |
parent | 3e4c7797033926a0502cdd4491421c8b16684aef (diff) | |
download | bmcweb-2c70f8004afdc27bd42968b8bf7480f2e534974c.tar.xz |
Fix naming conventions
Lots of code has been checked in that doesn't match the naming
conventions. Lets fix that.
Tested:
Code compiles. Variable/function renames only.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: I6bd107811d0b724f1fad990016113cdf035b604b
Diffstat (limited to 'redfish-core/lib/certificate_service.hpp')
-rw-r--r-- | redfish-core/lib/certificate_service.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp index 35c60b17fd..514222163c 100644 --- a/redfish-core/lib/certificate_service.hpp +++ b/redfish-core/lib/certificate_service.hpp @@ -263,7 +263,7 @@ class CertificateActionGenerateCSR : public Node void doPost(crow::Response& res, const crow::Request& req, const std::vector<std::string>&) override { - static const int RSA_KEY_BIT_LENGTH = 2048; + static const int rsaKeyBitLength = 2048; auto asyncResp = std::make_shared<AsyncResp>(res); // Required parameters std::string city; @@ -282,7 +282,7 @@ class CertificateActionGenerateCSR : public Node std::optional<std::string> optEmail = ""; std::optional<std::string> optGivenName = ""; std::optional<std::string> optInitials = ""; - std::optional<int64_t> optKeyBitLength = RSA_KEY_BIT_LENGTH; + std::optional<int64_t> optKeyBitLength = rsaKeyBitLength; std::optional<std::string> optKeyCurveId = "secp384r1"; std::optional<std::string> optKeyPairAlgorithm = "EC"; std::optional<std::vector<std::string>> optKeyUsage = @@ -355,7 +355,7 @@ class CertificateActionGenerateCSR : public Node // supporting only 2048 key bit length for RSA algorithm due to time // consumed in generating private key if (*optKeyPairAlgorithm == "RSA" && - *optKeyBitLength != RSA_KEY_BIT_LENGTH) + *optKeyBitLength != rsaKeyBitLength) { messages::propertyValueNotInList(asyncResp->res, std::to_string(*optKeyBitLength), @@ -414,17 +414,17 @@ class CertificateActionGenerateCSR : public Node // Only allow one CSR matcher at a time so setting retry time-out and // timer expiry to 10 seconds for now. - static const int TIME_OUT = 10; + static const int timeOut = 10; if (csrMatcher) { messages::serviceTemporarilyUnavailable(asyncResp->res, - std::to_string(TIME_OUT)); + std::to_string(timeOut)); return; } // Make this static so it survives outside this method static boost::asio::steady_timer timeout(*req.ioService); - timeout.expires_after(std::chrono::seconds(TIME_OUT)); + timeout.expires_after(std::chrono::seconds(timeOut)); timeout.async_wait([asyncResp](const boost::system::error_code& ec) { csrMatcher = nullptr; if (ec) |