diff options
author | Jacob Keeler <jacob.keeler@livioradio.com> | 2018-06-25 07:37:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 07:37:30 -0700 |
commit | a79341d7a35b7d97e239d4908a34b72978d5a821 (patch) | |
tree | b8c167b9d50e2190fa58cbbc6ac9b03ee9553b7c | |
parent | 621080dafb543db973d15ba7415c1eb60833a8b0 (diff) | |
parent | 05ef3819db1d992acf449ec70892877f5d273fc9 (diff) | |
download | sdl_core-a79341d7a35b7d97e239d4908a34b72978d5a821.tar.gz |
Merge pull request #2280 from XevoInc/bugfix/build_breaks_security_off
fix: build breaks when ENABLE_SECURITY is OFF
-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 |