diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/cors_preflight.hpp | 2 | ||||
-rw-r--r-- | include/ssl_key_handler.hpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/cors_preflight.hpp b/include/cors_preflight.hpp index 844fd3862e..4bac265182 100644 --- a/include/cors_preflight.hpp +++ b/include/cors_preflight.hpp @@ -6,7 +6,7 @@ namespace cors_preflight { -void requestRoutes(App& app) +inline void requestRoutes(App& app) { BMCWEB_ROUTE(app, "<str>") .methods(boost::beast::http::verb::options)( diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp index 39e83d7f85..24e40a48af 100644 --- a/include/ssl_key_handler.hpp +++ b/include/ssl_key_handler.hpp @@ -205,8 +205,7 @@ inline X509* loadCert(const std::string& filePath) inline int addExt(X509* cert, int nid, const char* value) { X509_EXTENSION* ex = nullptr; - X509V3_CTX ctx; - X509V3_set_ctx_nodb(&ctx); + X509V3_CTX ctx{}; X509V3_set_ctx(&ctx, cert, cert, nullptr, nullptr, 0); ex = X509V3_EXT_conf_nid(nullptr, &ctx, nid, const_cast<char*>(value)); if (!ex) |