Code needed for Change Master Password
This commit is contained in:
@@ -113,6 +113,11 @@
|
||||
SubType = "Code"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "common\ResetMasterPassword.cs"
|
||||
SubType = "Code"
|
||||
BuildAction = "Compile"
|
||||
/>
|
||||
<File
|
||||
RelPath = "common\WrappedObject.cs"
|
||||
SubType = "Code"
|
||||
|
||||
22
c_micasad/lib/common/ResetMasterPassword.cs
Normal file
22
c_micasad/lib/common/ResetMasterPassword.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace Novell.CASA.MiCasa.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for ResetMasterPassword.
|
||||
/// </summary>
|
||||
///
|
||||
[Serializable]
|
||||
public class ResetMasterPassword
|
||||
{
|
||||
public string m_currentPassword;
|
||||
public string m_newPassword;
|
||||
public int rcode = 0;
|
||||
|
||||
public ResetMasterPassword(string currentPassword, string newPassword)
|
||||
{
|
||||
m_currentPassword = currentPassword;
|
||||
m_newPassword = newPassword;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,6 +30,7 @@ namespace Novell.CASA.MiCasa.Communication
|
||||
public const int VERB_REMOVE_KEY = 15;
|
||||
public const int VERB_READ_KEY = 16;
|
||||
public const int VERB_GET_KEY_LIST = 17;
|
||||
public const int VERB_RESET_MASTER_PASSWORD = 18;
|
||||
|
||||
public const int VERB_DUMP_LINKED_KEYS = 96;
|
||||
public const int VERB_CREATE_TEST_SECRETS = 97;
|
||||
@@ -129,7 +130,10 @@ namespace Novell.CASA.MiCasa.Communication
|
||||
reply = (WrappedObject)formatter.Deserialize(ms);
|
||||
|
||||
if (reply.GetReturnCode() != 0)
|
||||
{
|
||||
ipcChannel.Close();
|
||||
throw new Exception(reply.GetReturnCode().ToString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ OBJS=\
|
||||
AssemblyInfo \
|
||||
common/LinkedKeyInfo \
|
||||
common/Ping \
|
||||
common/ResetMasterPassword \
|
||||
common/WrappedObject \
|
||||
common/MiCASAStore \
|
||||
communication/IClientChannel \
|
||||
|
||||
@@ -2,6 +2,7 @@ SRC=\
|
||||
AssemblyInfo.cs \
|
||||
common/LinkedKeyInfo.cs \
|
||||
common/Ping.cs \
|
||||
common/ResetMasterPassword.cs \
|
||||
common/WrappedObject.cs \
|
||||
common/MiCASAStore.cs \
|
||||
communication/IClientChannel.cs \
|
||||
|
||||
Reference in New Issue
Block a user