From 07537558404c671d2bb26101ae87fe37bc9706e5 Mon Sep 17 00:00:00 2001 From: Dongsun Lee Date: Sat, 27 Jun 2015 15:27:54 +0900 Subject: [PATCH] add a solution in case for no password set Change-Id: Ie7d65c5165a2d0e162b4e990240c84e12d6227ed Signed-off-by: Dongsun Lee --- src/manager/service/ckm-service.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/manager/service/ckm-service.cpp b/src/manager/service/ckm-service.cpp index 644e1c4..3a21a64 100644 --- a/src/manager/service/ckm-service.cpp +++ b/src/manager/service/ckm-service.cpp @@ -166,6 +166,14 @@ RawBuffer CKMService::ProcessStorage(Credentials &cred, MessageBuffer &buffer) buffer.Deserialize(command); buffer.Deserialize(msgID); + // This is a workaround solution for locktype=None in Tizen 2.2.1 + // When locktype is None, lockscreen app doesn't interfere with unlocking process. + // Therefor lockscreen app cannot notify unlock events to key-manager when locktype is None. + // So, to unlock user data when lock type is None, key-manager always try to unlock user data with null password. + // Even if the result is fail, it will be ignored. + Password nullPassword(""); + m_logic->unlockUserKey(cred.clientUid, nullPassword); + LogDebug("Process storage. Command: " << command); switch(static_cast(command)) { -- 2.7.4