Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hashing directories of certificates #852

Merged
merged 4 commits into from
Dec 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move hashing directories out of libocpp
Signed-off-by: Ivan Rogach <ivan.rogach@alfen.com>
jannejy committed Dec 3, 2024
commit d335bad95ea7989526d4d6df6ee6f062ca666132
310 changes: 0 additions & 310 deletions 3rd_party/cert_rehash/c_rehash.hpp

This file was deleted.

2 changes: 0 additions & 2 deletions lib/ocpp/common/websocket/websocket_libwebsockets.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2023 Pionix GmbH and Contributors to EVerest
#include <cert_rehash/c_rehash.hpp>
#include <evse_security/crypto/openssl/openssl_provider.hpp>
#include <ocpp/common/websocket/websocket_libwebsockets.hpp>

@@ -380,7 +379,6 @@ bool WebsocketLibwebsockets::tls_init(SSL_CTX* ctx, const std::string& path_chai
EVLOG_info << "Loading CA csms bundle to verify server certificate: " << ca_csms;

if (std::filesystem::is_directory(ca_csms)) {
hash_dir(ca_csms.c_str());
rc = SSL_CTX_load_verify_locations(ctx, NULL, ca_csms.c_str());
} else {
rc = SSL_CTX_load_verify_locations(ctx, ca_csms.c_str(), NULL);