add a solution in case for no password set 00/42400/1
authorDongsun Lee <ds73.lee@samsung.com>
Sat, 27 Jun 2015 06:27:54 +0000 (15:27 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Sat, 27 Jun 2015 06:27:54 +0000 (15:27 +0900)
Change-Id: Ie7d65c5165a2d0e162b4e990240c84e12d6227ed
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
src/manager/service/ckm-service.cpp

index 644e1c4..3a21a64 100644 (file)
@@ -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<LogicCommand>(command)) {