Author: spouliot
Date: 2005-04-27 10:41:52 -0400 (Wed, 27 Apr 2005)
New Revision: 43655
Added:
trunk/mcs/class/corlib/System.Security/SecurityCriticalScope.cs
trunk/mcs/class/corlib/System.Security/SecurityTreatAsSafeAttribute.cs
Modified:
trunk/mcs/class/corlib/System.Security/ChangeLog
Log:
New attribute and enum introduced in 2.0 beta2
Modified: trunk/mcs/class/corlib/System.Security/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Security/ChangeLog 2005-04-27 14:20:42 UTC
(rev 43654)
+++ trunk/mcs/class/corlib/System.Security/ChangeLog 2005-04-27 14:41:52 UTC
(rev 43655)
@@ -1,3 +1,9 @@
+2005-04-27 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * SecurityCriticalScope.cs: New. Enum introduced in 2.0 beta2.
+ * SecurityTreatAsSafeAttribute.cs: New. Attribute introducted in 2.0
+ beta2.
+
2005-04-25 Sebastien Pouliot <[EMAIL PROTECTED]>
* HostSecurityManager.cs: Now refers to HostSecurityManagerOptions.
Added: trunk/mcs/class/corlib/System.Security/SecurityCriticalScope.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security/SecurityCriticalScope.cs
2005-04-27 14:20:42 UTC (rev 43654)
+++ trunk/mcs/class/corlib/System.Security/SecurityCriticalScope.cs
2005-04-27 14:41:52 UTC (rev 43655)
@@ -0,0 +1,39 @@
+//
+// System.Security.SecurityCriticalScope enum
+//
+// Author:
+// Sebastien Pouliot <[EMAIL PROTECTED]>
+//
+// Copyright (C) 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Security {
+
+ public enum SecurityCriticalScope {
+ Explicit,
+ Everything
+ }
+}
+
+#endif
Added: trunk/mcs/class/corlib/System.Security/SecurityTreatAsSafeAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security/SecurityTreatAsSafeAttribute.cs
2005-04-27 14:20:42 UTC (rev 43654)
+++ trunk/mcs/class/corlib/System.Security/SecurityTreatAsSafeAttribute.cs
2005-04-27 14:41:52 UTC (rev 43655)
@@ -0,0 +1,47 @@
+//
+// System.Security.SecurityTreatAsSafeAttribute implementation
+//
+// Author:
+// Sebastien Pouliot <[EMAIL PROTECTED]>
+//
+// Copyright (C) 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Security {
+
+ [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Module |
AttributeTargets.Class | AttributeTargets.Struct |
+ AttributeTargets.Enum | AttributeTargets.Constructor |
AttributeTargets.Method | AttributeTargets.Property |
+ AttributeTargets.Field | AttributeTargets.Event |
AttributeTargets.Interface | AttributeTargets.Parameter |
+ AttributeTargets.Delegate | AttributeTargets.ReturnValue,
AllowMultiple=false, Inherited=false)]
+ [MonoTODO ("Not supported by the runtime")]
+ public sealed class SecurityTreatAsSafeAttribute : Attribute {
+
+ public SecurityTreatAsSafeAttribute ()
+ : base ()
+ {
+ }
+ }
+}
+
+#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches