Skip to content

Commit

Permalink
fix: adjust location of openssl_types.hpp (#815)
Browse files Browse the repository at this point in the history
plus some compiler defines

Signed-off-by: James Chapman <james.chapman@pionix.de>
Co-authored-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com>
  • Loading branch information
james-ctc and Pietfried authored Aug 6, 2024
1 parent 665eb1d commit efb8bda
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ libcurl:
# and would otherwise be overwritten by the version used there
libevse-security:
git: https://github.com/EVerest/libevse-security.git
git_tag: 8a300f39b94fb6364759dfbb57e8501facb94b2f
git_tag: aec383634d4def547ea4e8a5743576b697ea9987
cmake_condition: "EVEREST_DEPENDENCY_ENABLED_LIBEVSE_SECURITY"

# OCPP
Expand Down
4 changes: 4 additions & 0 deletions lib/staging/tls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ target_sources(tls
tls.cpp
)

target_compile_definitions(tls PRIVATE
-DLIBEVSE_CRYPTO_SUPPLIER_OPENSSL
)

target_include_directories(tls
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
Expand Down
2 changes: 1 addition & 1 deletion lib/staging/tls/openssl_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <openssl_conv.hpp>

#include <evse_security/detail/openssl/openssl_types.hpp>
#include <evse_security/crypto/openssl/openssl_types.hpp>
#include <memory>
#include <openssl/x509.h>

Expand Down
1 change: 1 addition & 0 deletions lib/staging/tls/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ target_include_directories(${TLS_GTEST_NAME} PRIVATE

target_compile_definitions(${TLS_GTEST_NAME} PRIVATE
-DUNIT_TEST
-DLIBEVSE_CRYPTO_SUPPLIER_OPENSSL
)

target_sources(${TLS_GTEST_NAME} PRIVATE
Expand Down

0 comments on commit efb8bda

Please sign in to comment.