Skip to content

Commit

Permalink
feat(httpsVerifier): moves the header files (related to certificate v…
Browse files Browse the repository at this point in the history
…erification) to the 'src' directory.
  • Loading branch information
Nicogp committed Jan 20, 2025
1 parent 54d7bcc commit 541c719
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/agent/communicator/src/cert_store_utils_mac.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <icert_store_utils_mac.hpp>
#include "icert_store_utils_mac.hpp"

#include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h>
Expand Down
2 changes: 1 addition & 1 deletion src/agent/communicator/src/cert_store_utils_win.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <wincrypt.h>
// clang-format on

#include <icert_store_utils_win.hpp>
#include "icert_store_utils_win.hpp"

#include <string>

Expand Down
2 changes: 1 addition & 1 deletion src/agent/communicator/src/https_socket.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <https_socket_verify_utils.hpp>
#include "https_socket_verify_utils.hpp"
#include <ihttp_socket.hpp>
#include <logger.hpp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "https_socket_verify_utils.hpp"
#include <boost/asio/ssl.hpp>
#include <https_socket_verify_utils.hpp>

#include <string>

Expand Down
8 changes: 4 additions & 4 deletions src/agent/communicator/src/https_socket_verify_utils_mac.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "cert_store_utils_mac.hpp"
#include "https_socket_verify_utils.hpp"
#include "https_verifier_mac.hpp"
#include "icert_store_utils_mac.hpp"
#include "ix509_utils.hpp"
#include "x509_utils.hpp"
#include <https_socket_verify_utils.hpp>
#include <https_verifier_mac.hpp>
#include <icert_store_utils_mac.hpp>
#include <ix509_utils.hpp>

#include <boost/asio/ssl.hpp>

Expand Down
6 changes: 3 additions & 3 deletions src/agent/communicator/src/https_socket_verify_utils_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
// clang-format on

#include "cert_store_utils_win.hpp"
#include "https_socket_verify_utils.hpp"
#include "https_verifier_win.hpp"
#include "icert_store_utils_win.hpp"
#include "ix509_utils.hpp"
#include "x509_utils.hpp"
#include <https_socket_verify_utils.hpp>
#include <icert_store_utils_win.hpp>
#include <ix509_utils.hpp>

#include <boost/asio/ssl.hpp>

Expand Down
8 changes: 4 additions & 4 deletions src/agent/communicator/src/https_verifier_mac.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "https_verifier_mac.hpp"
#include "cert_store_utils_mac.hpp"
#include "https_socket_verify_utils.hpp"
#include "icert_store_utils_mac.hpp"
#include "ix509_utils.hpp"
#include "x509_utils.hpp"
#include <https_socket_verify_utils.hpp>
#include <https_verifier_mac.hpp>
#include <icert_store_utils_mac.hpp>
#include <ix509_utils.hpp>
#include <logger.hpp>

#include <CoreFoundation/CoreFoundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <icert_store_utils_mac.hpp>
#include <ix509_utils.hpp>
#include "icert_store_utils_mac.hpp"
#include "ix509_utils.hpp"

#include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h>
Expand Down
4 changes: 2 additions & 2 deletions src/agent/communicator/src/https_verifier_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

#include "https_verifier_win.hpp"
#include "cert_store_utils_win.hpp"
#include "icert_store_utils_win.hpp"
#include "ix509_utils.hpp"
#include "x509_utils.hpp"
#include <icert_store_utils_win.hpp>
#include <ix509_utils.hpp>
#include <logger.hpp>

#include <boost/asio/ssl.hpp>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/agent/communicator/src/x509_utils.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <ix509_utils.hpp>
#include "ix509_utils.hpp"

#include <boost/asio/ssl.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/agent/communicator/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(WIN32)
elseif(APPLE)
add_executable(https_verifier_test https_verifier_mac_test.cpp)
configure_target(https_verifier_test)
target_include_directories(https_verifier_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include)
target_include_directories(https_verifier_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include ${CMAKE_CURRENT_SOURCE_DIR}/../src)
target_link_libraries(https_verifier_test PUBLIC Communicator GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main)
add_test(NAME HttpsVerifierTest COMMAND https_verifier_test)
else()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <gmock/gmock.h>

#include <icert_store_utils_mac.hpp>
#include "icert_store_utils_mac.hpp"

class MockCertStoreUtils : public https_socket_verify_utils::ICertificateStoreUtilsMac
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <gmock/gmock.h>

#include <icert_store_utils_win.hpp>
#include "icert_store_utils_win.hpp"

class MockCertStoreUtils : public https_socket_verify_utils::ICertificateStoreUtilsWin
{
Expand Down
2 changes: 1 addition & 1 deletion src/agent/communicator/tests/mocks/mock_x509_utils.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <gmock/gmock.h>

#include <ix509_utils.hpp>
#include "ix509_utils.hpp"

class MockX509Utils : public https_socket_verify_utils::ICertificateX509Utils
{
Expand Down

0 comments on commit 541c719

Please sign in to comment.