commit | 6f115bbbfdf9d45bad404bf88fc4fe2ffa745a9e | [log] [tgz] |
---|---|---|
author | Manojkiran Eda <manojkiran.eda@gmail.com> | Sat Jun 27 09:52:23 2020 +0530 |
committer | Gunnar Mills <gmills@us.ibm.com> | Wed Jul 01 16:13:12 2020 +0000 |
tree | 12bf1ceb532f1aa55d4ce7fe9abb1138dc106d23 | |
parent | 6eda7685694dca84db5a1b86b497c8d1e9fcbd06 [diff] |
Fix : Compilation issue when ssl is disabled - When the SSL is disabled, the socket that bmcweb uses would be a basic_socket type , and that does not have a next_layer as that itself is the basic socket, we can directly read the socket object/ or use the lowest_layer() of the socket to get the ip address from it. - When SSL is enabled, the socket that bmcweb uses would be an ssl stream over basic_socket, and here the next_layer would be basic_socket, so the existing logic holds good. - The idea behind this commit is to , have a conditional check for SSL vs non-SSL configurations before reading the socket for ip address. Tested By: * cmake -DBMCWEB_INSECURE_DISABLE_SSL=1 -DCMAKE_BUILD_TYPE:type=Debug ../ ; make - The above Compilation was successfull. Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I2b9a127be30b11b056641342e0af06118c526528
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.