#
f2646271 |
| 30-Sep-2023 |
Ravi Teja <raviteja28031990@gmail.com> |
logging: switch to lg2
It is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Tested By: Built CertificateManager su
logging: switch to lg2
It is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Tested By: Built CertificateManager successfully and Unit Test passes.
Change-Id: Ib2ff946febfe0335d4ecf5fa932683d3a0f117bb Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
show more ...
|
#
223e4604 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Ie4138afe359d52b9f1a32fdff6890a90dd31efa8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
cf06ccdc |
| 28-Dec-2021 |
Nan Zhou <nanzhoumails@gmail.com> |
clean up using directives and type alias
Most C++ style guides try to avoid using directives in headers and also suggest using type alias carefully, according to which, this change does the followin
clean up using directives and type alias
Most C++ style guides try to avoid using directives in headers and also suggest using type alias carefully, according to which, this change does the following clean up:
1. used Enum class to represent Certificate type 2. removed all using directives: e.g. the phosphor logging namespace; instead, this change uses using declarations 3. removed unnecessary type alias; in existing codes, we only support strings as types of UnitToRestart, InstallPath, UploadPath, etc; this change uses std::string directly 4. moved all alias outside any class scope into source files or an internal namespace 5. renamed types, constants, classes as per OpenBMC style guide 6. fixed all compilation errors and some warnings after the refactoring; built with both Clang & GCC
Reference: https://docs.microsoft.com/en-us/cpp/cpp/header-files-cpp?view=msvc-170#what-to-put-in-a-header-file https://google.github.io/styleguide/cppguide.html#Namespaces
Tested: Unit tests
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I58e026934a4e969f4d8877801c8f3c671990468a
show more ...
|
#
718eef37 |
| 28-Dec-2021 |
Nan Zhou <nanzhoumails@gmail.com> |
config.h.in: use const variables instead of macros
Most style guides try to avoid preprocessor macros, especially the use case here: const objects. This change replaced them with const variables. Th
config.h.in: use const variables instead of macros
Most style guides try to avoid preprocessor macros, especially the use case here: const objects. This change replaced them with const variables. Their names are also changed according to the OpenBMC style guide.
Reference: https://google.github.io/styleguide/cppguide.html#Preprocessor_Macros
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I0786c7c83f3a0d892c14f1cb813d0aa16d627b3e
show more ...
|
#
e1289adf |
| 28-Dec-2021 |
Nan Zhou <nanzhoumails@gmail.com> |
Use nested namespace
Nested namespace is introduced in C++ 17. This saves nearly 50 lines. This change also puts tests into a nested namespace, which saves unnecessary using directives.
Signed-off-
Use nested namespace
Nested namespace is introduced in C++ 17. This saves nearly 50 lines. This change also puts tests into a nested namespace, which saves unnecessary using directives.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I7c3e38588fd5c2cbd83ac13ee24327318e8c06a4
show more ...
|
#
11d09066 |
| 20-Apr-2021 |
Ravi Teja <raviteja28031990@gmail.com> |
CA Certs: Modify object entry path to fix object sub-tree hierarchy
Currently there is no interface added signal generated as object path is not following hierarchy.
to fix this behaviour, this com
CA Certs: Modify object entry path to fix object sub-tree hierarchy
Currently there is no interface added signal generated as object path is not following hierarchy.
to fix this behaviour, this commit modifies object entry path to /xyz/openbmc_project/certs/ca/entry/<id> InterfacesAdded signal:
signal time=1619111735.917791 sender=:1.660 -> destination=(null destination) serial=68 path=/xyz/openbmc_project/certs/ca; interface=org.freedesktop.DBus.ObjectManager; member=InterfacesAdded object path "/xyz/openbmc_project/certs/ca/entry/6"
Tested by: D-bus monitor while Creating dbus objects
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com> Change-Id: I3ce8aa2b2ec5da321557ea40f484ea2947d57442
show more ...
|
#
a49895ee |
| 16-Jun-2020 |
Ravi Teja <raviteja28031990@gmail.com> |
Implementation of BMC VMI certificate manager
This manager is to create and manage entries for each host CSR request which needs to shared with host.
this commits implements dbus interfaces https:/
Implementation of BMC VMI certificate manager
This manager is to create and manage entries for each host CSR request which needs to shared with host.
this commits implements dbus interfaces https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/31808
This feature can be enabled by using below feature flag "--enable-ca-cert-extension"
Testby: Creating CSR entries Deleting entries Setting properties
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com> Change-Id: I24829b839feac6264f32053b9be63daef6599379
show more ...
|