From d6116221881137e9b30ae66b3c99cc7d6b982344 Mon Sep 17 00:00:00 2001 From: AssemblyJohn Date: Tue, 23 Apr 2024 15:34:19 +0300 Subject: [PATCH] Bump version Signed-off-by: AssemblyJohn --- CMakeLists.txt | 2 +- lib/evse_security/evse_security.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7bd75b..b90f520 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.14) -project(everest-evse_security VERSION 0.5 +project(everest-evse_security VERSION 0.6 DESCRIPTION "Implementation of EVSE related security operations" LANGUAGES CXX C ) diff --git a/lib/evse_security/evse_security.cpp b/lib/evse_security/evse_security.cpp index c45511c..888d5f1 100644 --- a/lib/evse_security/evse_security.cpp +++ b/lib/evse_security/evse_security.cpp @@ -949,7 +949,7 @@ GetKeyPairResult EvseSecurity::get_key_pair_internal(LeafCertificateType certifi leaf_certificates.for_each_chain_ordered( [&](const fs::path& file, const std::vector& chain) { // Search for the first valid where we can find a key - if (chain.size() && chain.at(0).is_valid()) { + if (not chain.empty() && chain.at(0).is_valid()) { try { // Search for the private key auto priv_key_path = @@ -969,7 +969,7 @@ GetKeyPairResult EvseSecurity::get_key_pair_internal(LeafCertificateType certifi }, [](const std::vector& a, const std::vector& b) { // Order from newest to oldest - if (a.size() && b.size()) { + if (not a.empty() && not b.empty()) { return a.at(0).get_valid_to() > b.at(0).get_valid_to(); } else { return false;