From 05ef3819db1d992acf449ec70892877f5d273fc9 Mon Sep 17 00:00:00 2001 From: Sho Amano Date: Tue, 19 Jun 2018 18:22:10 +0900 Subject: fix: build breaks when ENABLE_SECURITY is OFF --- src/components/protocol_handler/src/protocol_handler_impl.cc | 2 ++ src/components/protocol_handler/test/protocol_handler_tm_test.cc | 2 ++ 2 files changed, 4 insertions(+) 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 -- cgit v1.2.1