commit | dc7a793d44b012ba9742c42c3b141b3378591a35 | [log] [tgz] |
---|---|---|
author | Ed Tanous <ed@tanous.net> | Mon Aug 17 15:04:58 2020 -0700 |
committer | Ed Tanous <ed@tanous.net> | Tue Aug 18 07:08:58 2020 +0000 |
tree | 7c5773b4aae86c0abf1d9fdf62ea7cd479e63623 | |
parent | f0b6ae0a97f0481ea1ff9b281da3b6809a9f1cae [diff] |
url_view throws if a parse error is found This causes a strange condition where the webserver crashes on bad urls. Tested: Loaded on RPI. Verified that this particular crash no longer breaks the fuzzer. Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: I459421e27c8d07c2bc45099b5942f7c7c929610d
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.