diff options
author | Sho Amano <samano@xevo.com> | 2018-06-19 18:22:10 +0900 |
---|---|---|
committer | Sho Amano <samano@xevo.com> | 2018-06-19 18:25:14 +0900 |
commit | 05ef3819db1d992acf449ec70892877f5d273fc9 (patch) | |
tree | 1a702762767073f332316cda999223a70cb21bc8 /src/components/protocol_handler | |
parent | 2ec732c56e3f06b7043cf02cf98109720d6ff38a (diff) | |
download | sdl_core-05ef3819db1d992acf449ec70892877f5d273fc9.tar.gz |
fix: build breaks when ENABLE_SECURITY is OFF
Diffstat (limited to 'src/components/protocol_handler')
-rw-r--r-- | src/components/protocol_handler/src/protocol_handler_impl.cc | 2 | ||||
-rw-r--r-- | src/components/protocol_handler/test/protocol_handler_tm_test.cc | 2 |
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 |