Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
Signed-off-by: AssemblyJohn <[email protected]>
  • Loading branch information
AssemblyJohn committed May 8, 2024
1 parent 6e702ef commit 871ec1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/evse_security/evse_security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,10 +1414,11 @@ int EvseSecurity::get_leaf_expiry_days_count(LeafCertificateType certificate_typ
fs::path certificate_path;

if (key_pair.info.has_value()) {
if (key_pair.info.value().certificate.has_value())
if (key_pair.info.value().certificate.has_value()) {
certificate_path = key_pair.info.value().certificate.value();
else
} else {
certificate_path = key_pair.info.value().certificate_single.value();
}
}

if (certificate_path.empty() == false) {
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#if USING_OPENSSL_3
// provider management has changed - ensure tests still work
#ifndef USING_TPM2contains_certificate_hash
#ifndef USING_TPM2

#include <evse_security/detail/openssl/openssl_providers.hpp>
#else
Expand Down

0 comments on commit 871ec1e

Please sign in to comment.