commit | cb13a39253848ece442971301ade9c09d98bf08e | [log] [tgz] |
---|---|---|
author | Ed Tanous <ed@tanous.net> | Sat Jul 25 19:02:03 2020 +0000 |
committer | Ed Tanous <ed@tanous.net> | Mon Aug 17 20:54:37 2020 +0000 |
tree | 62f2a64fbc98d8ee635a0a81f3ef07afa541981d | |
parent | 23a21a1cbed23ace4174664950e595df961e9e69 [diff] |
Enable unused variable warnings and resolve This commit enables the "unused variables" warning in clang. Throughout this, it did point out several issues that would've been functional bugs, so I think it was worthwhile. It also cleaned up several unused variable from old constructs that no longer exist. Tested: Built with clang. Code no longer emits warnings. Downloaded bmcweb to system and pulled up the webui, observed webui loads and logs in properly. Change-Id: I51505f4222cc147d6f2b87b14d7e2ac4a74cafa8 Signed-off-by: Ed Tanous <ed@tanous.net>
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/CMakeLists.txt
and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ...
followed by make
. The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.