diff --git a/CASA/gui/ExportSecrets.cs b/CASA/gui/ExportSecrets.cs index 25e6660d..35ea6106 100644 --- a/CASA/gui/ExportSecrets.cs +++ b/CASA/gui/ExportSecrets.cs @@ -111,7 +111,12 @@ namespace Novell.CASA.GUI m_config.WriteConfig(); // call our daemon to get the users secrets - ExportXMLSecrets exportSecrets = new ExportXMLSecrets(sMasterPWD, sEncryptString); + ExportXMLSecrets exportSecrets = new ExportXMLSecrets(sMasterPWD, sEncryptString, sFileName); + + object obj = Novell.CASA.MiCasa.Communication.MiCasaRequestReply.Send(MiCasaRequestReply.VERB_EXPORT_SECRETS, null, null, null, exportSecrets); + + + /* byte[] theSecrets = (byte[])Novell.CASA.MiCasa.Communication.MiCasaRequestReply.Send(MiCasaRequestReply.VERB_EXPORT_SECRETS, null, null, null, exportSecrets); // write em out. @@ -121,6 +126,7 @@ namespace Novell.CASA.GUI fs.Write(theSecrets, 0, theSecrets.Length); fs.Flush(); fs.Close(); + */ CommonGUI.DisplayMessage(MessageType.Info, "Secrets saved to: \r\n" + sFileName); diff --git a/CASA/gui/ImportSecrets.cs b/CASA/gui/ImportSecrets.cs index af2f7149..c7c69614 100644 --- a/CASA/gui/ImportSecrets.cs +++ b/CASA/gui/ImportSecrets.cs @@ -13,6 +13,7 @@ namespace Novell.CASA.GUI { Config m_config = null; public MiCasa m_objMiCasa = null; + string sFile = null; byte[] buffer = null; [Glade.Widget] @@ -32,8 +33,7 @@ namespace Novell.CASA.GUI { String sHintDir = m_config.GetConfigSetting(CommonGUI.HINT_DIR, null);; String sHintFilename = m_config.GetConfigSetting(CommonGUI.HINT_FILENAME, null); - string sFile = null; - + FileChooser fc = new FileChooser(FileChooser.ACTION_OPEN); sFile = fc.GetFile(sHintDir, sHintFilename); @@ -71,7 +71,7 @@ namespace Novell.CASA.GUI // check for clear text secrets if (data.StartsWith("