Bug 150644. Prevent removal of secrets when store is locked.
This commit is contained in:
parent
7e9883fe5e
commit
433961874f
10
CASA.changes
10
CASA.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 14 14:01:20 MST 2006 - jnorman@novell.com
|
||||||
|
|
||||||
|
- Bug 150644. Prevent removal of secrets when store is locked.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 14 13:45:20 MST 2006 - jnorman@novell.com
|
||||||
|
|
||||||
|
- Bug 150037. For windows, change build options to not require msvcr71.dll.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 14 10:15:20 MST 2006 - smanojna@novell.com
|
Tue Feb 14 10:15:20 MST 2006 - smanojna@novell.com
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ namespace sscs.constants
|
|||||||
internal static int SSCS_STORE_IS_NOT_PERSISTENT = -23;
|
internal static int SSCS_STORE_IS_NOT_PERSISTENT = -23;
|
||||||
internal static int SSCS_SECRET_IS_PERSISTENT = -24;
|
internal static int SSCS_SECRET_IS_PERSISTENT = -24;
|
||||||
internal static int SSCS_SECRET_IS_NOT_PERSISTENT = -25;
|
internal static int SSCS_SECRET_IS_NOT_PERSISTENT = -25;
|
||||||
|
internal static int SSCS_SECRET_STORE_IS_LOCKED = -26;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,11 +97,13 @@ namespace sscs.verbs
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
SecretStore ssStore = SessionManager.GetUserSecretStore(userId);
|
SecretStore ssStore = SessionManager.GetUserSecretStore(userId);
|
||||||
|
if (!ssStore.IsStoreLocked())
|
||||||
|
{
|
||||||
|
|
||||||
if( ssStore.CheckIfKeyChainExists(keyChainId) )
|
if (ssStore.CheckIfKeyChainExists(keyChainId))
|
||||||
{
|
{
|
||||||
KeyChain keyChain = ssStore.GetKeyChain(keyChainId);
|
KeyChain keyChain = ssStore.GetKeyChain(keyChainId);
|
||||||
if( keyChain.CheckIfSecretExists(secretId) == false)
|
if (keyChain.CheckIfSecretExists(secretId) == false)
|
||||||
{
|
{
|
||||||
retCode = IPCRetCodes.SSCS_E_SECRETID_DOES_NOT_EXIST;
|
retCode = IPCRetCodes.SSCS_E_SECRETID_DOES_NOT_EXIST;
|
||||||
}
|
}
|
||||||
@ -117,6 +119,9 @@ namespace sscs.verbs
|
|||||||
retCode = IPCRetCodes.SSCS_E_KEYCHAIN_DOES_NOT_EXIST;
|
retCode = IPCRetCodes.SSCS_E_KEYCHAIN_DOES_NOT_EXIST;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
retCode = IPCRetCodes.SSCS_SECRET_STORE_IS_LOCKED;
|
||||||
|
}
|
||||||
catch(UserNotInSessionException)
|
catch(UserNotInSessionException)
|
||||||
{
|
{
|
||||||
CSSSLogger.DbgLog("In " + CSSSLogger.GetExecutionPath(this) + " Unable to get user's secretstore" );
|
CSSSLogger.DbgLog("In " + CSSSLogger.GetExecutionPath(this) + " Unable to get user's secretstore" );
|
||||||
|
Loading…
Reference in New Issue
Block a user