From 94c6468f42bc86ecc2cd05576a393f023d5654f6 Mon Sep 17 00:00:00 2001 From: AssemblyJohn Date: Mon, 21 Oct 2024 11:37:20 +0300 Subject: [PATCH] Format Signed-off-by: AssemblyJohn --- lib/staging/evse_security/conversions.cpp | 2 +- modules/EvseSecurity/main/evse_securityImpl.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/staging/evse_security/conversions.cpp b/lib/staging/evse_security/conversions.cpp index d965b5eba..909f98962 100644 --- a/lib/staging/evse_security/conversions.cpp +++ b/lib/staging/evse_security/conversions.cpp @@ -455,7 +455,7 @@ types::evse_security::CertificateInfo to_everest(evse_security::CertificateInfo lhs.certificate = other.certificate; lhs.certificate_single = other.certificate_single; lhs.password = other.password; - lhs.certificate_count = other.certificate_count; + lhs.certificate_count = other.certificate_count; return lhs; } diff --git a/modules/EvseSecurity/main/evse_securityImpl.cpp b/modules/EvseSecurity/main/evse_securityImpl.cpp index 7c601c47d..29fe3a5d1 100644 --- a/modules/EvseSecurity/main/evse_securityImpl.cpp +++ b/modules/EvseSecurity/main/evse_securityImpl.cpp @@ -123,16 +123,17 @@ evse_securityImpl::handle_get_leaf_certificate_info(types::evse_security::LeafCe types::evse_security::GetCertificateFullInfoResult evse_securityImpl::handle_get_all_valid_certificates_info(types::evse_security::LeafCertificateType& certificate_type, - types::evse_security::EncodingFormat& encoding, bool& include_ocsp) { + types::evse_security::EncodingFormat& encoding, + bool& include_ocsp) { types::evse_security::GetCertificateFullInfoResult response; const auto full_leaf_info = this->evse_security->get_all_valid_certificates_info( conversions::from_everest(certificate_type), conversions::from_everest(encoding), include_ocsp); - + response.status = conversions::to_everest(full_leaf_info.status); if (full_leaf_info.status == evse_security::GetCertificateInfoStatus::Accepted) { - for(const auto& info : full_leaf_info.info) { + for (const auto& info : full_leaf_info.info) { response.info.push_back(conversions::to_everest(info)); } }