diff --git a/CASA/micasad/cache/SecretStore.cs b/CASA/micasad/cache/SecretStore.cs index 283e583f..cb9fa520 100644 --- a/CASA/micasad/cache/SecretStore.cs +++ b/CASA/micasad/cache/SecretStore.cs @@ -367,7 +367,7 @@ namespace sscs.cache CASACrypto.StoreKeySetUsingMasterPasscode(key, IV, baPasscode, fileName); } - catch (Exception e) + catch (Exception) { return false; } diff --git a/CASA/micasad/common/CSSSException.cs b/CASA/micasad/common/CSSSException.cs index e82470c3..b2bf27fa 100644 --- a/CASA/micasad/common/CSSSException.cs +++ b/CASA/micasad/common/CSSSException.cs @@ -29,8 +29,7 @@ namespace sscs.common //TBD // All user defined exceptions will extend this class in future internal class CSSSException : ApplicationException -{ - internal string user; +{ internal CSSSException (string message) { diff --git a/CASA/micasad/common/SessionManager.cs b/CASA/micasad/common/SessionManager.cs index 1bb20b4d..20c2fc84 100644 --- a/CASA/micasad/common/SessionManager.cs +++ b/CASA/micasad/common/SessionManager.cs @@ -86,7 +86,7 @@ namespace sscs.common ss.CreateTime = DateTime.Now; return ss; } - catch(UserNotInSessionException e) + catch(UserNotInSessionException) { // Would create either windows/unix user // depending on the platform. @@ -276,7 +276,7 @@ namespace sscs.common Thread.Sleep(JANITOR_SLEEP_TIME); } //while true ends here. } - catch(ThreadAbortException e) + catch(ThreadAbortException) { CSSSLogger.DbgLog("Janitor thread is going down."); } diff --git a/CASA/micasad/common/User.cs b/CASA/micasad/common/User.cs index e244cd63..40291247 100644 --- a/CASA/micasad/common/User.cs +++ b/CASA/micasad/common/User.cs @@ -40,7 +40,7 @@ namespace sscs.common protected SecretStore secretStore; - protected string home; + //protected string home; /* Change the protection level after getting the latest requirements */ diff --git a/CASA/micasad/common/WinUser.cs b/CASA/micasad/common/WinUser.cs index 9808f6e2..73ae6b99 100644 --- a/CASA/micasad/common/WinUser.cs +++ b/CASA/micasad/common/WinUser.cs @@ -116,7 +116,7 @@ namespace sscs.common // or null is returned. return (string)sk1.GetValue(KeyName.ToUpper()); } - catch (Exception e) + catch (Exception) { //ShowErrorMessage(e, "Reading registry " + KeyName.ToUpper()); return null; diff --git a/CASA/micasad/communication/WinIPCChannel.cs b/CASA/micasad/communication/WinIPCChannel.cs index 503597b8..c6fe3818 100644 --- a/CASA/micasad/communication/WinIPCChannel.cs +++ b/CASA/micasad/communication/WinIPCChannel.cs @@ -86,7 +86,7 @@ namespace sscs.communication return incoming; } - catch(Exception e) + catch(Exception) { return null; //CSSSLogger.DbgLog("Exception in reading data from client" + e.ToString()); diff --git a/CASA/micasad/init/ProjectInstaller.cs b/CASA/micasad/init/ProjectInstaller.cs index 1a2044a0..4f8ba3d3 100644 --- a/CASA/micasad/init/ProjectInstaller.cs +++ b/CASA/micasad/init/ProjectInstaller.cs @@ -117,11 +117,11 @@ namespace sscs.init public override void Install(IDictionary stateServer) { - Microsoft.Win32.RegistryKey system, - currentControlSet, - services, - service, - config; + Microsoft.Win32.RegistryKey system, + currentControlSet, + services, + service; + //config; try { diff --git a/CASA/micasad/init/UserInfo.cs b/CASA/micasad/init/UserInfo.cs index cd1ec9ef..4c54a590 100644 --- a/CASA/micasad/init/UserInfo.cs +++ b/CASA/micasad/init/UserInfo.cs @@ -194,7 +194,7 @@ namespace sscs.init private static void GetLUID(HANDLE token, ref int lowPart, ref int highPart) { - TOKEN_USER tokUser; + const int bufLength = 256; IntPtr tu = Marshal.AllocHGlobal(bufLength); int cb = bufLength; diff --git a/CASA/micasad/init/WinSecretStoreClientService.cs b/CASA/micasad/init/WinSecretStoreClientService.cs index 4d58c184..7e304fbc 100644 --- a/CASA/micasad/init/WinSecretStoreClientService.cs +++ b/CASA/micasad/init/WinSecretStoreClientService.cs @@ -306,7 +306,7 @@ namespace sscs.init } } - catch(Exception e) + catch(Exception) { // Terminate(); } diff --git a/CASA/micasad/lib/communication/MiCasaRequestReply.cs b/CASA/micasad/lib/communication/MiCasaRequestReply.cs index 2e292b14..2f82f34e 100644 --- a/CASA/micasad/lib/communication/MiCasaRequestReply.cs +++ b/CASA/micasad/lib/communication/MiCasaRequestReply.cs @@ -172,7 +172,7 @@ namespace Novell.CASA.MiCasa.Communication } - catch (Exception e1) + catch (Exception) { //Console.WriteLine(e1.ToString()); //clientConnection.Dispose(); diff --git a/CASA/micasad/verbs/ObjectSerialization.cs b/CASA/micasad/verbs/ObjectSerialization.cs index 3fa82f41..665cb04b 100644 --- a/CASA/micasad/verbs/ObjectSerialization.cs +++ b/CASA/micasad/verbs/ObjectSerialization.cs @@ -98,7 +98,7 @@ namespace sscs.verbs request = (WrappedObject)formatter.Deserialize(ms); reply = ProcessMessage(request, userId); } - catch (Exception e) + catch (Exception) { reply = new WrappedObject(-1, null); } @@ -880,7 +880,7 @@ namespace sscs.verbs kv3.AddLink(new LinkedKeyInfo(GW, "Password")); kv.AddLink(new LinkedKeyInfo(GWIM, "Password")); } - catch (Exception e) + catch (Exception) { //Console.WriteLine(e.ToString()); } diff --git a/CASA/micasad/verbs/WriteKey.cs b/CASA/micasad/verbs/WriteKey.cs index 344fd457..753b9f4b 100644 --- a/CASA/micasad/verbs/WriteKey.cs +++ b/CASA/micasad/verbs/WriteKey.cs @@ -46,7 +46,7 @@ namespace sscs.verbs private uint outMsgLen = 0; private uint keyChainIdLen = 0; private uint secretIdLen = 0; - private uint secretValLen = 0; + private int retCode = 0; private string keyChainId; private string secretId; diff --git a/CASA/micasad/verbs/WriteSecret.cs b/CASA/micasad/verbs/WriteSecret.cs index e23a4af6..c332ecf8 100644 --- a/CASA/micasad/verbs/WriteSecret.cs +++ b/CASA/micasad/verbs/WriteSecret.cs @@ -118,7 +118,7 @@ namespace sscs.verbs int extLocation = 22 + ((int)keyChainIdLen) + ((int)secretIdLen) + ((int)secretValLen); extId = BitConverter.ToUInt32(inBuf, extLocation); } - catch (Exception e) + catch (Exception) { //CSSSLogger.ExpLog(e.ToString()); } diff --git a/CASA/micasad/winforms/MiCasaForm.cs b/CASA/micasad/winforms/MiCasaForm.cs index e9ebec48..df6c8964 100644 --- a/CASA/micasad/winforms/MiCasaForm.cs +++ b/CASA/micasad/winforms/MiCasaForm.cs @@ -428,7 +428,7 @@ namespace sscs.winforms fs.Close(); } } - catch (Exception e1) + catch (Exception) { } diff --git a/CASA/policy/AggregationPol.cs b/CASA/policy/AggregationPol.cs index c7534037..1dae3e34 100644 --- a/CASA/policy/AggregationPol.cs +++ b/CASA/policy/AggregationPol.cs @@ -115,7 +115,7 @@ public class AggregationPol : CASAPol aggPolElem.AppendChild(storeElem); } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } diff --git a/CASA/policy/PolicyImpl.cs b/CASA/policy/PolicyImpl.cs index 23e17a55..bd9c5fcd 100644 --- a/CASA/policy/PolicyImpl.cs +++ b/CASA/policy/PolicyImpl.cs @@ -117,7 +117,7 @@ public class ICASAPol string path = homeDir + XmlConsts.policyFileName; return path; } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -138,7 +138,7 @@ public class ICASAPol policies[3] = GetPolicy(CASAPolType.SYNCH_POL); return policies; } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -172,7 +172,7 @@ public class ICASAPol writer.Close(); return true; } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -205,7 +205,7 @@ public class ICASAPol return aggPol; } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -267,7 +267,7 @@ public class ICASAPol { htSecretPolicies.Add(idNode.Value, nvc); } - catch (Exception e) + catch (Exception) { //Console.WriteLine(e.ToString()); } @@ -278,7 +278,7 @@ public class ICASAPol return persistencePol; } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -325,7 +325,7 @@ public class ICASAPol return uiPol; } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -368,7 +368,7 @@ public class ICASAPol synchPol = new SynchPol(linkGrpList); } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -411,7 +411,7 @@ public class ICASAPol } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -520,7 +520,7 @@ public class ICASAPol SetPolicies(policies); return true; } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } diff --git a/CASA/policy/SynchPol.cs b/CASA/policy/SynchPol.cs index 7b7baa30..e244d3b1 100644 --- a/CASA/policy/SynchPol.cs +++ b/CASA/policy/SynchPol.cs @@ -155,7 +155,7 @@ public class KWLinkKey : LinkKey attr.Value = keyId; linkKeyElem.SetAttributeNode(attr); } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -198,7 +198,7 @@ public class GKLinkKey : LinkKey attr.Value = keyId; linkKeyElem.SetAttributeNode(attr); } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -244,7 +244,7 @@ public class MZLinkKey : LinkKey linkKeyElem.SetAttributeNode(attr); } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -288,7 +288,7 @@ public class FXLinkKey : LinkKey linkKeyElem.SetAttributeNode(attr); } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -327,7 +327,7 @@ public class CASALinkKey : LinkKey linkKeyElem.SetAttributeNode(attr); } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -370,7 +370,7 @@ public class Link linkElem.AppendChild(linkKeyElem); } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -416,7 +416,7 @@ public class LinkGroup linkGroupElem.AppendChild(linkElem); } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } @@ -471,7 +471,7 @@ public class SynchPol: CASAPol // linkGroups[i].AppendToDoc(doc); } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); } diff --git a/CASA/policy/UIPol.cs b/CASA/policy/UIPol.cs index 49477193..85376cbe 100644 --- a/CASA/policy/UIPol.cs +++ b/CASA/policy/UIPol.cs @@ -155,7 +155,7 @@ namespace Novell.CASA.CASAPolicy } } - catch(Exception e) + catch(Exception) { //Console.WriteLine(e.ToString()); }