diff options
author | Alexandr Galiuzov <agaliuzov@luxoft.com> | 2015-09-09 16:05:18 +0300 |
---|---|---|
committer | Aleksandr Galiuzov <AGaliuzov@luxoft.com> | 2015-10-04 20:12:52 +0300 |
commit | d656eb202c2c1060adf2e700bc2719f131d9f8bb (patch) | |
tree | 877d62f40b73f36c6ee716832530224efceee54f /src/components/application_manager/src/application_manager_impl.cc | |
parent | 20b2fc038ba1ed5c6d6d882d525781c41a740ea2 (diff) | |
download | sdl_core-d656eb202c2c1060adf2e700bc2719f131d9f8bb.tar.gz |
Trigger update in case of certificate to be expired
In case when certificate from policy table will be expired in less
then defined in config file hours amount the PTU will be triggered.
Closes-Issue:APPLINK-12302
Diffstat (limited to 'src/components/application_manager/src/application_manager_impl.cc')
-rw-r--r-- | src/components/application_manager/src/application_manager_impl.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/application_manager/src/application_manager_impl.cc b/src/components/application_manager/src/application_manager_impl.cc index a9e67a93ca..4fed37a455 100644 --- a/src/components/application_manager/src/application_manager_impl.cc +++ b/src/components/application_manager/src/application_manager_impl.cc @@ -1199,7 +1199,12 @@ bool ApplicationManagerImpl::OnHandshakeDone( SSLContext::Handshake_Result_NotYetValid)) { app->usage_report().RecordTLSError(); } - return true; + return false; +} + +void ApplicationManagerImpl::OnCertificateUpdateRequired() { + LOG4CXX_AUTO_TRACE(logger_); + policy::PolicyHandler::instance()->OnPTExchangeNeeded(); } security_manager::SSLContext::HandshakeContext |