Create Session KeyChain, and Server KeyChain by default during creation of user session.
This commit is contained in:
parent
88db52f6c2
commit
6fe32f742c
@ -105,8 +105,21 @@ namespace sscs.common
|
||||
mutex.ReleaseMutex();
|
||||
ss = user.GetSecretStore();
|
||||
ss.IncrRefCount();
|
||||
ss.CreateTime = DateTime.Now;
|
||||
ss.StartPersistenceOfServerSecretsBySystemKey();
|
||||
ss.CreateTime = DateTime.Now;
|
||||
|
||||
// add session keychain if it does not exist.
|
||||
if (!ss.CheckIfKeyChainExists(constants.ConstStrings.SSCS_SESSION_KEY_CHAIN_ID + '\0'))
|
||||
{
|
||||
ss.AddKeyChain(new KeyChain(constants.ConstStrings.SSCS_SESSION_KEY_CHAIN_ID + '\0'));
|
||||
}
|
||||
|
||||
// add server keychain if it does not exist.
|
||||
if (!ss.CheckIfKeyChainExists(constants.ConstStrings.SSCS_SERVER_KEY_CHAIN_ID + '\0'))
|
||||
{
|
||||
ss.AddKeyChain(new KeyChain(constants.ConstStrings.SSCS_SERVER_KEY_CHAIN_ID + '\0'));
|
||||
}
|
||||
|
||||
ss.StartPersistenceOfServerSecretsBySystemKey();
|
||||
return ss;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user