diff options
author | Feras Aldahlawi <faldahlawi@gmail.com> | 2021-03-20 00:01:46 +0300 |
---|---|---|
committer | Feras Aldahlawi <faldahlawi@gmail.com> | 2021-08-10 03:55:32 +0300 |
commit | 735ef6d87392d643901ffede8042652b29d8cce7 (patch) | |
tree | 0ac8a6a20cf2cd22195f1629c5566013d1791dc2 /src/webserver_main.cpp | |
parent | 885bbf1c82ea9f9cbfbe0065ee46adc8e398c868 (diff) | |
download | bmcweb-735ef6d87392d643901ffede8042652b29d8cce7.tar.xz |
Add google service root
This commit introduces the following
=> Service root for Google
=> compiler option for the Google Root of Trust specific functionalities
Tested:
curl -vvvv --insecure --user $user_pass https://${bmc}/google/v1
Desing Doc can be found here https://github.com/openbmc/docs/blob/master/designs/oem/google/root_of_trust.md
Change-Id: I941b5cab55179279d0eff18aa29df62c3f226e47
Signed-off-by: Feras Aldahlawi <faldahlawi@gmail.com>
Diffstat (limited to 'src/webserver_main.cpp')
-rw-r--r-- | src/webserver_main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index c01accd2e9..bf98aae73b 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -6,6 +6,7 @@ #include <cors_preflight.hpp> #include <dbus_monitor.hpp> #include <dbus_singleton.hpp> +#include <google/google_service_root.hpp> #include <hostname_monitor.hpp> #include <ibm/management_console_rest.hpp> #include <image_upload.hpp> @@ -108,6 +109,10 @@ int main(int /*argc*/, char** /*argv*/) crow::ibm_mc_lock::Lock::getInstance(); #endif +#ifdef BMCWEB_ENABLE_GOOGLE_API + crow::google_api::requestRoutes(app); +#endif + if (bmcwebInsecureDisableXssPrevention) { cors_preflight::requestRoutes(app); |