Create Session KeyChain, and Server KeyChain by default during creation of user session.

This commit is contained in:
Jim Norman 2006-12-06 11:06:41 +00:00
parent 88db52f6c2
commit 6fe32f742c

View File

@ -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;
}
}