diff --git a/test/blackbox/common/BlackboxTests.cpp b/test/blackbox/common/BlackboxTests.cpp index 43b579d5740..55eee5beb5a 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 0704263571f..5637b58ec41 100644 --- a/test/blackbox/common/BlackboxTests.hpp +++ b/test/blackbox/common/BlackboxTests.hpp @@ -46,13 +46,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 b004a815015..1215a3820b8 100644 --- a/test/blackbox/common/BlackboxTestsSecurity.cpp +++ b/test/blackbox/common/BlackboxTestsSecurity.cpp @@ -40,8 +40,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,