summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/protocol_handler/src/protocol_handler_impl.cc2
-rw-r--r--src/components/protocol_handler/test/protocol_handler_tm_test.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/components/protocol_handler/src/protocol_handler_impl.cc b/src/components/protocol_handler/src/protocol_handler_impl.cc
index a2766f724e..636932f449 100644
--- a/src/components/protocol_handler/src/protocol_handler_impl.cc
+++ b/src/components/protocol_handler/src/protocol_handler_impl.cc
@@ -859,7 +859,9 @@ void ProtocolHandlerImpl::OnConnectionClosed(
void ProtocolHandlerImpl::NotifyOnFailedHandshake() {
LOG4CXX_AUTO_TRACE(logger_);
+#ifdef ENABLE_SECURITY
security_manager_->NotifyListenersOnHandshakeFailed();
+#endif // ENABLE_SECURITY
}
RESULT_CODE ProtocolHandlerImpl::SendFrame(const ProtocolFramePtr packet) {
diff --git a/src/components/protocol_handler/test/protocol_handler_tm_test.cc b/src/components/protocol_handler/test/protocol_handler_tm_test.cc
index 23e4201968..0cb8e155d0 100644
--- a/src/components/protocol_handler/test/protocol_handler_tm_test.cc
+++ b/src/components/protocol_handler/test/protocol_handler_tm_test.cc
@@ -99,9 +99,11 @@ using transport_manager::TransportManagerListener;
using test::components::security_manager_test::MockSystemTimeHandler;
using transport_manager::E_SUCCESS;
using transport_manager::DeviceInfo;
+#ifdef ENABLE_SECURITY
// For security
using ContextCreationStrategy =
security_manager::SecurityManager::ContextCreationStrategy;
+#endif // ENABLE_SECURITY
// For CH entities
using connection_handler::DeviceHandle;
// Google Testing Framework Entities