diff --git a/test/blackbox/common/BlackboxTests.cpp b/test/blackbox/common/BlackboxTests.cpp index c852a08be98..e5fd17e82c0 100644 --- a/test/blackbox/common/BlackboxTests.cpp +++ b/test/blackbox/common/BlackboxTests.cpp @@ -30,6 +30,7 @@ using namespace eprosima::fastrtps::rtps; //#define cout "Use Log instead!" +const char* certs_path = nullptr; uint16_t global_port = 0; bool enable_datasharing; bool use_pull_mode; diff --git a/test/blackbox/common/BlackboxTests.hpp b/test/blackbox/common/BlackboxTests.hpp index 9cfa979839c..d56fd742302 100644 --- a/test/blackbox/common/BlackboxTests.hpp +++ b/test/blackbox/common/BlackboxTests.hpp @@ -43,13 +43,13 @@ #include #if HAVE_SECURITY -extern const char* certs_path; extern void blackbox_security_init(); #endif // if HAVE_SECURITY #if TLS_FOUND extern void tls_init(); #endif // if TLS_FOUND +extern const char* certs_path; extern uint16_t global_port; extern bool enable_datasharing; extern bool use_pull_mode; diff --git a/test/blackbox/common/BlackboxTestsSecurity.cpp b/test/blackbox/common/BlackboxTestsSecurity.cpp index a97c7a66093..8032e353e39 100644 --- a/test/blackbox/common/BlackboxTestsSecurity.cpp +++ b/test/blackbox/common/BlackboxTestsSecurity.cpp @@ -37,8 +37,6 @@ using namespace eprosima::fastrtps::rtps; using test_UDPv4Transport = eprosima::fastdds::rtps::test_UDPv4Transport; using test_UDPv4TransportDescriptor = eprosima::fastdds::rtps::test_UDPv4TransportDescriptor; -const char* certs_path = nullptr; - enum communication_type { TRANSPORT,