Skip to content

Commit

Permalink
Updated documentation on hierarchy building to avoid confusion
Browse files Browse the repository at this point in the history
Signed-off-by: AssemblyJohn <[email protected]>
  • Loading branch information
AssemblyJohn committed Jul 26, 2024
1 parent 7624055 commit de0973c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/evse_security/certificate/x509_hierarchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ void X509CertificateHierarchy::insert(X509Wrapper&& inserted_certificate) {
auto& node = hierarchy[i];
auto& state = node.state;

// If we have a temporary orphan
// If we have a temporary orphan, that is if we are in the roots
// and we are not self-signed then it means that we are an orphan
if (state.is_selfsigned == 0) {
// Some sanity checks
if (state.is_hash_computed)
Expand Down

0 comments on commit de0973c

Please sign in to comment.