Handle malformed values. Detect non-existence MP file.

This commit is contained in:
Jim Norman 2007-06-19 19:05:22 +00:00
parent dfbdcc6403
commit 5afe199508
2 changed files with 1539 additions and 1531 deletions

View File

@ -64,7 +64,7 @@ public class Common
public static string MICASA_PASSCODE_BY_MP_FILE = "/.miCASAPCByMPasswd";
public static string MICASA_KEY_FILE = "/.miCASAKey";
public static string MICASA_PERSISTENCE_FILE = "/.miCASA";
public static string MICASA_VALIDATION_FILE = "/.miCASAValidate";
public static string MICASA_VALIDATION_FILE = "/.miCASAValidateHash";
static Char[] SpecialCharacters = new Char[]{ '*', ':', '\'', '\\', '&', '=', '<', '>' };

View File

@ -20,7 +20,8 @@
*
***********************************************************************/
namespace Novell.CASA.GUI {
namespace Novell.CASA.GUI
{
using System;
@ -329,6 +330,8 @@ public class MiCasa : Store
bool bHasLinks = false;
for (int i = 0; i < keys.Length; i++)
{
try
{
Secret secret = ss.GetSecret(selected);
@ -364,6 +367,11 @@ public class MiCasa : Store
dtModified.ToShortDateString() + " " + dtModified.ToShortTimeString());
}
}
catch (Exception e)
{
Logger.DbgLog(e.ToString());
}
}