[corlib] Fixes security tests failures
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Xml / XmlDsigC14NTransform.cs
index 935980a75571437a1dcf906965c042352addf339..acbf322dc5e7ec80e8afffaaa284b26bc85691e6 100644 (file)
@@ -88,14 +88,12 @@ namespace System.Security.Cryptography.Xml {
                        return null; // THIS IS DOCUMENTED AS SUCH
                }
 
-#if NET_2_0
                [ComVisible (false)]
                public override byte[] GetDigestedOutput (HashAlgorithm hash)
                {
                        // no null check, MS throws a NullReferenceException here
                        return hash.ComputeHash ((Stream) GetOutput ());
                }
-#endif
 
                public override object GetOutput () 
                {
@@ -121,9 +119,7 @@ namespace System.Security.Cryptography.Xml {
                        if (stream != null) {
                                XmlDocument doc = new XmlDocument ();
                                doc.PreserveWhitespace = true;  // REALLY IMPORTANT
-#if NET_1_1
                                doc.XmlResolver = GetResolver ();
-#endif
                                doc.Load (new XmlSignatureStreamReader (new StreamReader (stream)));
 //                             doc.Load ((Stream) obj);
                                s = canonicalizer.Canonicalize (doc);
@@ -140,12 +136,8 @@ namespace System.Security.Cryptography.Xml {
                        if (nl != null) {
                                s = canonicalizer.Canonicalize (nl);
                        }
-#if NET_2_0
                        else
                                throw new ArgumentException ("obj");
-#else
-                       // note: there is no default are other types won't throw an exception
-#endif
                }
        }
 }