Attempt unlocking all gnome-keyrings
This commit is contained in:
15
c_micasad/cache/SecretStore.cs
vendored
15
c_micasad/cache/SecretStore.cs
vendored
@@ -35,6 +35,10 @@ using sscs.constants;
|
||||
using sscs.lss;
|
||||
using sscs.crypto;
|
||||
|
||||
#if LINUX
|
||||
using Novell.CASA.DataEngines.GK;
|
||||
#endif
|
||||
|
||||
namespace sscs.cache
|
||||
{
|
||||
class SecretStore
|
||||
@@ -141,6 +145,17 @@ namespace sscs.cache
|
||||
internal bool StartPersistenceByDesktopPasswd(string desktopPasswd)
|
||||
{
|
||||
CSSSLogger.DbgLog("StartPersistenceByDesktopPasswd - Called");
|
||||
#if LINUX
|
||||
// attempt unlock of gnome-keyring rings
|
||||
try
|
||||
{
|
||||
GnomeKeyring.AttemptGKUnlock(desktopPasswd);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
CSSSLogger.DbgLog(e.ToString());
|
||||
}
|
||||
#endif
|
||||
// make sure we have a user home directory
|
||||
if (GetUserHomeDirectory() == null || GetUserHomeDirectory().Length < 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user