Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
Signed-off-by: AssemblyJohn <[email protected]>
  • Loading branch information
AssemblyJohn committed Apr 23, 2024
1 parent 1cf19dc commit d611622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions lib/evse_security/evse_security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<X509Wrapper>& 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 =
Expand All @@ -969,7 +969,7 @@ GetKeyPairResult EvseSecurity::get_key_pair_internal(LeafCertificateType certifi
},
[](const std::vector<X509Wrapper>& a, const std::vector<X509Wrapper>& 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;
Expand Down

0 comments on commit d611622

Please sign in to comment.