- Bug 169353. Prompt user for Desktop Password when Master Password is not present.

This commit is contained in:
Jim Norman
2006-05-08 02:38:42 +00:00
parent f6a659b7eb
commit 837669576a
9 changed files with 11900 additions and 11371 deletions

View File

@@ -29,6 +29,7 @@ using sscs.verbs;
using sscs.cache;
using sscs.common;
using sscs.constants;
using sscs.lss;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
@@ -212,6 +213,10 @@ namespace sscs.verbs
{
return DoGetSecretIDs(ssStore, wo);
}
case MiCasaRequestReply.VERB_VALIDATE_DESKTOP_PWD:
{
return DoValidateDesktopPwd(ssStore, wo);
}
default:
{
@@ -229,6 +234,24 @@ namespace sscs.verbs
return wo;
}
private WrappedObject DoValidateDesktopPwd(SecretStore ssStore, WrappedObject wo)
{
// let's validate the Desktop pwd
String sDesktopPwd = (String)wo.GetObject();
bool bIsValid = ssStore.IsDesktopPassword(sDesktopPwd);
if (bIsValid)
{
wo.SetObject("true");
}
else
{
wo.SetObject("false");
}
return wo;
}
private WrappedObject DoGetSecretIDs(SecretStore ssStore, WrappedObject wo)
{
if (!ssStore.IsStoreLocked())

View File

@@ -154,6 +154,10 @@ namespace sscs.verbs
#endif
}
if (secretId.Length < 1 || key.Length < 1 || valStr.Length < 1)
{
CSSSLogger.DbgLog("Error in length");
}
try
{