commit | ebd459060ea4f42761402dd54acd0962c36136c2 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Wed Aug 26 14:21:10 2020 +0800 |
committer | James Feist <james.feist@linux.intel.com> | Thu Aug 27 16:42:37 2020 +0000 |
tree | 61f0255c5af53bf11bf490ab7bc1f5592382bc31 | |
parent | f5b16f030f1fd67412c7d279e79b58ffc5e36f67 [diff] |
Fix potential null pointer dereference Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ibeedbe61fa1575af2599c63e6513ddb7d1feff58
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.