Author: spouliot
Date: 2005-03-24 08:16:29 -0500 (Thu, 24 Mar 2005)
New Revision: 42205

Modified:
   trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
   trunk/mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs
   trunk/mcs/class/corlib/System.Security.Cryptography/CryptoConfig.cs
Log:
2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * CryptoConfig.cs: Added LinkDemand for unrestricted to CreateFromName
        when used to create instance with object[] parameters.
        * CryptoAPITransform.cs: Added Demand for UnmanagedCode to KeyHandle 
        property.



Modified: trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog       
2005-03-24 12:43:57 UTC (rev 42204)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/ChangeLog       
2005-03-24 13:16:29 UTC (rev 42205)
@@ -1,3 +1,10 @@
+2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * CryptoConfig.cs: Added LinkDemand for unrestricted to CreateFromName
+       when used to create instance with object[] parameters.
+       * CryptoAPITransform.cs: Added Demand for UnmanagedCode to KeyHandle 
+       property.
+
 2005-03-07  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * MD5CryptoServiceProvider.cs: Fixed #73404 to return right results

Modified: 
trunk/mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs   
2005-03-24 12:43:57 UTC (rev 42204)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs   
2005-03-24 13:16:29 UTC (rev 42205)
@@ -5,7 +5,7 @@
 //     Thomas Neidhart ([EMAIL PROTECTED])
 //     Sebastien Pouliot ([EMAIL PROTECTED])
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 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
@@ -28,6 +28,7 @@
 //
 
 using System.Runtime.InteropServices;
+using System.Security.Permissions;
 
 namespace System.Security.Cryptography {
 
@@ -63,6 +64,7 @@
                }
 
                public IntPtr KeyHandle {
+                       [SecurityPermission (SecurityAction.Demand, 
UnmanagedCode = true)]
                        get { return IntPtr.Zero; }
                }
 

Modified: trunk/mcs/class/corlib/System.Security.Cryptography/CryptoConfig.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Cryptography/CryptoConfig.cs 
2005-03-24 12:43:57 UTC (rev 42204)
+++ trunk/mcs/class/corlib/System.Security.Cryptography/CryptoConfig.cs 
2005-03-24 13:16:29 UTC (rev 42205)
@@ -34,6 +34,7 @@
 using System.IO;
 using System.Reflection;
 using System.Runtime.CompilerServices;
+using System.Security.Permissions;
 using System.Text;
 
 using Mono.Xml;
@@ -425,6 +426,7 @@
                return CreateFromName (name, null);
        }
 
+       [PermissionSet (SecurityAction.LinkDemand, Unrestricted = true)]
        public static object CreateFromName (string name, object[] args)
        {
                if (name == null)

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

Reply via email to