Skip to content

Commit

Permalink
Refs #22024: Do not reference OpenSSLInit if security features are no…
Browse files Browse the repository at this point in the history
… present

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Nov 12, 2024
1 parent 7804d79 commit 705b6b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cpp/rtps/RTPSDomainImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@

#include <rtps/reader/BaseReader.hpp>
#include <rtps/reader/LocalReaderPointer.hpp>
#include <security/OpenSSLInit.hpp>
#include <rtps/writer/BaseWriter.hpp>
#include <utils/shared_memory/BoostAtExitRegistry.hpp>
#include <utils/SystemInfo.hpp>

#if HAVE_SECURITY
#include <security/OpenSSLInit.hpp>
#endif // HAVE_SECURITY

#include <fastdds/xtypes/type_representation/TypeObjectRegistry.hpp>

namespace eprosima {
Expand Down Expand Up @@ -286,8 +289,9 @@ class RTPSDomainImpl
std::shared_ptr<eprosima::detail::BoostAtExitRegistry> boost_singleton_handler_ { eprosima::detail::
BoostAtExitRegistry::
get_instance() };

#if HAVE_SECURITY
std::shared_ptr<security::OpenSSLInit> openssl_singleton_handler_{ security::OpenSSLInit::get_instance() };
#endif // HAVE_SECURITY

std::mutex m_mutex;

Expand Down

0 comments on commit 705b6b6

Please sign in to comment.