Author: spouliot
Date: 2006-05-31 10:55:33 -0400 (Wed, 31 May 2006)
New Revision: 61337

Modified:
   trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog
   
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/KeyInfoClause.cs
   trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/Transform.cs
Log:
2006-05-31  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * KeyInfoClause.cs: Under 2.0 the ctor is protected.
        * Transform.cs: Under 2.0 the ctor is protected. Enable the use of 
        XmlSecureResolver when the security manager is active.



Modified: 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog  
2006-05-31 14:51:08 UTC (rev 61336)
+++ trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog  
2006-05-31 14:55:33 UTC (rev 61337)
@@ -1,3 +1,9 @@
+2006-05-31  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * KeyInfoClause.cs: Under 2.0 the ctor is protected.
+       * Transform.cs: Under 2.0 the ctor is protected. Enable the use of 
+       XmlSecureResolver when the security manager is active.
+
 2006-01-30  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * XmlDsigEnvelopedSignatureTransform.cs :

Modified: 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/KeyInfoClause.cs
===================================================================
--- 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/KeyInfoClause.cs
   2006-05-31 14:51:08 UTC (rev 61336)
+++ 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/KeyInfoClause.cs
   2006-05-31 14:55:33 UTC (rev 61337)
@@ -2,12 +2,11 @@
 // KeyInfoClause.cs - Abstract KeyInfoClause implementation for XML Signature
 //
 // Author:
-//     Sebastien Pouliot ([EMAIL PROTECTED])
+//     Sebastien Pouliot <[EMAIL PROTECTED]>
 //
 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
+// Copyright (C) 2006 Novell Inc. (http://www.novell.com)
 //
-
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -34,10 +33,16 @@
 
        public abstract class KeyInfoClause {
 
-               public KeyInfoClause () {}
+#if NET_2_0
+               protected KeyInfoClause ()
+#else
+               public KeyInfoClause ()
+#endif
+               {
+               }
 
                public abstract XmlElement GetXml ();
 
                public abstract void LoadXml (XmlElement element);
        }
-}
\ No newline at end of file
+}

Modified: 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/Transform.cs
===================================================================
--- 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/Transform.cs   
    2006-05-31 14:51:08 UTC (rev 61336)
+++ 
trunk/mcs/class/System.Security/System.Security.Cryptography.Xml/Transform.cs   
    2006-05-31 14:55:33 UTC (rev 61337)
@@ -8,7 +8,7 @@
 //
 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
 // Copyright (C) Tim Coleman, 2004
-// Copyright (C) 2004-2005 Novell Inc. (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell Inc. (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -33,6 +33,7 @@
 using System.Collections;
 using System.IO;
 using System.Runtime.InteropServices;
+using System.Security;
 using System.Security.Policy;
 using System.Xml;
 
@@ -43,14 +44,17 @@
                private string algo;
                private XmlResolver xmlResolver;
 
+#if NET_2_0
+               protected Transform ()
+#else
                public Transform ()
+#endif
                {
-               // FIXME: enable it after CAS implementation
-#if false // NET_1_1
-                       xmlResolver = new XmlSecureResolver (new XmlUrlResolver 
(), (Evidence) new Evidence ());
-#else
-                       xmlResolver = new XmlUrlResolver ();
-#endif
+                       if (SecurityManager.SecurityEnabled) {
+                               xmlResolver = new XmlSecureResolver (new 
XmlUrlResolver (), (Evidence) new Evidence ());
+                       } else {
+                               xmlResolver = new XmlUrlResolver ();
+                       }
                }
 
                #region Properties

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to