Browse Source

2004-09-16 Sebastien Pouliot <[email protected]>

	* tabledefs.h: Added new security actions defined in 2.0:
	LinkDemandChoice, InheritanceDemandChoice and DemandChoice.

svn path=/trunk/mono/; revision=33973
Sebastien Pouliot 21 years ago
parent
commit
f310e5c293
2 changed files with 11 additions and 1 deletions
  1. 5 0
      mono/metadata/ChangeLog
  2. 6 1
      mono/metadata/tabledefs.h

+ 5 - 0
mono/metadata/ChangeLog

@@ -1,3 +1,8 @@
+2004-09-16  Sebastien Pouliot  <[email protected]>
+
+	* tabledefs.h: Added new security actions defined in 2.0:
+	LinkDemandChoice, InheritanceDemandChoice and DemandChoice.
+
 2004-09-16  Lluis Sanchez Gual  <[email protected]>
 
 	* threads.c: Fixed SET_CURRENT_OBJECT macros, they were ignoring the

+ 6 - 1
mono/metadata/tabledefs.h

@@ -41,6 +41,7 @@ enum {
 	FILE_CONTAINS_NO_METADATA   = 1
 };
 
+/* keep in synch with System.Security.Permissions.SecurityAction enum */
 enum {
 	SECURITY_ACTION_DEMAND        = 2,
 	SECURITY_ACTION_ASSERT        = 3,
@@ -50,7 +51,11 @@ enum {
 	SECURITY_ACTION_INHERITDEMAND = 7,
 	SECURITY_ACTION_REQMIN        = 8,
 	SECURITY_ACTION_REQOPT        = 9,
-	SECURITY_ACTION_REQREFUSE     = 10
+	SECURITY_ACTION_REQREFUSE     = 10,
+	/* New in Fx 2.0 */
+	SECURITY_ACTION_LINKDEMANDCHOICE    = 16,
+	SECURITY_ACTION_INHERITDEMANDCHOICE = 17,
+	SECURITY_ACTION_DEMANDCHOICE        = 18
 };
 
 /*