Create Session KeyChain, and Server KeyChain by default during creation of user session.
This commit is contained in:
parent
88db52f6c2
commit
6fe32f742c
@ -106,7 +106,20 @@ namespace sscs.common
|
||||
ss = user.GetSecretStore();
|
||||
ss.IncrRefCount();
|
||||
ss.CreateTime = DateTime.Now;
|
||||
ss.StartPersistenceOfServerSecretsBySystemKey();
|
||||
|
||||
// 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