Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
Signed-off-by: AssemblyJohn <[email protected]>
  • Loading branch information
AssemblyJohn committed Nov 12, 2024
1 parent 364a936 commit 549ac8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/evse_security/evse_security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1717,8 +1717,8 @@ CertificateValidationResult EvseSecurity::verify_certificate_internal(const std:
if (_certificate_chain.size() > 1) {
for (size_t i = 1; i < _certificate_chain.size(); i++) {
const auto& cert = _certificate_chain[i];
// Ignore our root certificates or if the received certificate is somehow self-signed
if (cert.is_selfsigned() || hierarchy.is_internal_root(cert)) {
// Ignore the received certificate is somehow self-signed
if (cert.is_selfsigned()) {
EVLOG_warning << "Ignore root certificate: " << cert.get_common_name();
} else {
untrusted_subcas.emplace_back(cert.get());
Expand Down

0 comments on commit 549ac8c

Please sign in to comment.