Commit Graph
32 Commits
Author SHA1 Message Date
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Marek Safar c45375b4c8 Fix types signature 2012-07-27 12:25:43 +01:00
Jb Evain a3f7ce80a7 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153667
2010-03-16 12:19:11 +00:00
Rodrigo Kumpera 6e05ab9396 2010-02-27 Rodrigo Kumpera <[email protected]>
* Type.cs: Make cor-compare happy.

2010-02-27 Rodrigo Kumpera  <[email protected]>

	* Evidence.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=152609
2010-02-27 22:08:59 +00:00
Miguel de Icaza 3c39ac4586 Jumbo patch for NET_2_0, mscorlib is now clean
svn path=/trunk/mcs/; revision=145621
2009-11-06 22:23:59 +00:00
Jb Evain 288e614ea4 bring Mono Security to monotouch
svn path=/trunk/mcs/; revision=141615
2009-09-09 15:34:58 +00:00
Sebastien Pouliot 708e9ef50c minor NET_2_1 tweaks to remove 12 unneeded [SecuritySafeCritical] inside Moonlight 2
svn path=/trunk/mcs/; revision=133184
2009-04-30 14:03:27 +00:00
Sebastien Pouliot 1957b68645 In System.Security:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* SecurityException.cs: Remove CAS-specific stuff from ToString
	* SecurityManager.cs: Do not include for NET_2_1 build
	* SecurityManager_2_1.cs: Alternate implementation for NET_2_1

In .:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add new specific to 2.1 version of some 
	classes.

In System.Security.Policy:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* Evidence.cs: Custom GetDefaultHostEvidence for NET_2_1
	* Hash.cs: Do not include for NET_2_1 build
	* HashMembershipCondition.cs: Do not include for NET_2_1 build
	* PolicyLevel.cs: Do not include for NET_2_1 build
	* PolicyLevel_2_1.cs: Alternate implementation for NET_2_1
	* Zone.cs: Do not include for NET_2_1 build
	* ZoneMembershipCondition.cs: Do not include for NET_2_1 build


svn path=/trunk/mcs/; revision=132774
2009-04-27 19:07:56 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Sebastien Pouliot 64052ddcb1 2008-02-02 Sebastien Pouliot <[email protected]>
* Evidence.cs: Fix missing assignement (thanks to Gendarme :)


svn path=/trunk/mcs/; revision=94660
2008-02-03 00:34:51 +00:00
Miguel de Icaza 8a1af5fd38 2006-11-16 Miguel de Icaza <[email protected]>
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
	== AllDirectories

And a lot of MonoTODOs updated as well


svn path=/trunk/mcs/; revision=67998
2006-11-16 14:14:01 +00:00
Sebastien Pouliot 798b371d19 2006-01-05 Sebastien Pouliot <[email protected]>
* Evidence.cs: Use EscapedCodeBase instead of CodeBase. Fix nunit 
	under Windows.


svn path=/trunk/mcs/; revision=55107
2006-01-05 17:26:40 +00:00
Sebastien Pouliot 6ba03dc8d3 2005-06-14 Sebastien Pouliot <[email protected]>
* Evidence.cs: Avoid creating the synchronized array lists unless they
	are needed.
	* PolicyLevel.cs: Fixed System.Drawing public key. IsFullTrustAssembly
	can now executed without a Demand for the AssemblyName. Added the
	UnionCodeGroup in the default policies. Reworked initialization to
	support FullyTrustedAssemblies.


svn path=/trunk/mcs/; revision=45968
2005-06-14 14:14:36 +00:00
Sebastien Pouliot 06f245b898 2005-04-25 Sebastien Pouliot <[email protected]>
* AllMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* ApplicationDirectory.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2. Removed FIXME - confirmed as "by design" by MS.
	* ApplicationDirectoryMembershipCondition.cs: Added [ComVisible (true)]
	in NET_2_0 to match beta2.
	* ApplicationSecurityInfo.cs: Updated to match beta2.
	* ApplicationSecurityManager.cs: Updated to match beta2.
	* ApplicationTrust.cs: Updated to match beta2.
	* ApplicationTrustCollection.cs: Updated to match beta2.
	* ApplicationTrustEnumerator.cs: Added [ComVisible (true)] to match 
	beta2.
	* ApplicationVersionMatch.cs: Added [ComVisible (true)] to match beta2.
	* CodeConnectAccess.cs: Added [ComVisible (true)] to match beta2.
	* CodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. 
	Reworked Equals to avoid multiple typecast.
	* Evidence.cs: Updated to match beta2. Now use internal method 
	Assembly.UnprotectedGetName during security manager initialization.
	* FileCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2. Removed Scope property (didn't survive beta2).
	* FirstMatchCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2.
	* Gac.cs: Renamed class to GacInstalled. Added [ComVisible (true)] to
	match beta2.
	* GacMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2.
	* Hash.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* HashMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2. Reworked Equals to avoid multiple typecast.
	* IApplicationTrustManager.cs: Added [ComVisible (true)] to match 
	beta2.
	* IIdentityPermissionFactory.cs: Added [ComVisible (true)] in NET_2_0
	to match beta2.
	* IMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* NetCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2. Removed Scope property (didn't survive beta2).
	* PermissionRequestEvidence.cs: Added [ComVisible (true)] in NET_2_0 
	to match beta2.
	* PolicyException.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2.
	* PolicyLevel.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* PolicyStatementAttribute.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* PolicyStatement.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2.
	* ProvideAssemblyEvidenceEventArgs.cs: Added [ComVisible (true)] to 
	match beta2.
	* Publisher.cs: Added [ComVisible (true)] in NET_2_0 to	match beta2. 
	Reworked Equals to avoid multiple typecast.
	* PublisherMembershipCondition.cs: Added [ComVisible (true)] in 
	NET_2_0 to match beta2. Reworked Equals to avoid multiple typecast.
	* Site.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. Fixed
	allowed characters accepted in site names (different in 2.0 from 1.x).
	* SiteMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* StrongName.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* StrongNameMembershipCondition.cs: Added [ComVisible (true)] in 
	NET_2_0 to match beta2.
	* TrustManagerContext.cs: Updated to match beta2.
	* TrustManagerUIContext.cs: Added [ComVisible (true)] to match beta2.
	* UnionCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match
	beta2.
	* Url.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. Fixed
	the difference in Url matching between 1.x and 2.0. Reworked Equals to
	avoid multiple typecast.
	* UrlMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2. Fixed the difference in Url matching between 1.x and 2.0.
	* Zone.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. 
	Reworked Equals to avoid multiple typecast.
	* ZoneMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.


svn path=/trunk/mcs/; revision=43550
2005-04-25 16:25:03 +00:00
Sebastien Pouliot c0143493d6 2005-04-04 Sebastien Pouliot <[email protected]>
* Evidence.cs: Build the default host evidences requires access to the
	file system even if running on partial trust (so we assert it).


svn path=/trunk/mcs/; revision=42514
2005-04-04 12:29:12 +00:00
Sebastien Pouliot 4e0786ee8e * Evidence.cs: Fix problem with default evidence when ICU is enabled. Fix bug #71366.
svn path=/trunk/mcs/; revision=39102
2005-01-18 17:39:29 +00:00
Sebastien Pouliot b6e20f831e * Evidence.cs:
* FileCodeGroup.cs:
	* NetCodeGroup.cs:
	* PolicyLevel.cs:
	* PolicyStatement.cs:
		Added ComVisible attributes to match 2.0 October Preview.

2004-11-26  Sebastien Pouliot  <[email protected]>


svn path=/trunk/mcs/; revision=36640
2004-11-26 15:19:53 +00:00
Sebastien Pouliot 3fff7570c6 2004-11-26 Sebastien Pouliot <[email protected]>
* Evidence.cs: Faster default evidence creation by using an internal
	call to check for a possible Authenticode signature of the assembly.
	Previously we had to make several I/O to verify this (quite rare)
	presence (but the runtime already had a good hint about this).


svn path=/trunk/mcs/; revision=36639
2004-11-26 15:05:02 +00:00
Sebastien Pouliot fb0d065410 2004-10-20 Sebastien Pouliot <[email protected]>
* Evidence.cs: Fix the case where GetPublicKey returns a 0 length
	byte array so that we don't create an invalid StrongName evidence.

svn path=/trunk/mcs/; revision=35169
2004-10-20 14:01:46 +00:00
Sebastien Pouliot 86392669d2 2004-08-26 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs: Fixed directory validation and ToString.
	* CodeGroup.cs: Fixed PermissionSetName when policy is null.
	* Evidence.cs: Fixed Merge for null case. Fixed IsSynchronized for
	NET_2_0. Uncommented some code for NET_2_0 DomainManager usage.
	* FileCodeGroup.cs: Fixed Resolve and ResolveMatchingGroup wrt new
	unit tests.
	* Gac.cs: Implemented IBuiltInEvidence methods.
	* Hash.cs: Removed TODO from NET_2_0 as it's hashing seems compatible
	with Mono ;-). Fixed properties for use with NET_2_0.
	* HashMembershipCondition.cs: Fixed To|FromXml serialization. Make
	copies of hash value (not references).
	* PermissionRequestEvidence.cs: Now make copies of permission sets.
	* Publisher.cs: Namespace cleanup, implemented GetRequiredSize.
	* Site.cs: Namespace cleanup, implemented GetRequiredSize.
	* StrongName.cs: Namespace cleanup.
	* UnionCodeGroup.cs: Namespace cleanup, converted spaces to tabs.
	* Url.cs: Namespace cleanup, implemented GetRequiredSize.
	* Zone.cs: Namespace cleanup, globalization and added more details in
	exception.

svn path=/trunk/mcs/; revision=32888
2004-08-26 15:03:04 +00:00
Sebastien Pouliot c8bbc414b8 2004-08-08 Sebastien Pouliot <[email protected]>
* Evidence.cs: Added new static internal method to create default
	host evidences for an assembly.
	* FileCodeGroup.cs: Added incomplete (no children) policy resolution
	in order to load more complex policies.
	* Hash.cs: Added ISerialization support (required for cross-domain
	evidence support, like nunit).
	* NetCodeGroup.cs: Added incomplete (no children) policy resolution in
	order to load more complex policies.

svn path=/trunk/mcs/; revision=32040
2004-08-08 14:41:52 +00:00
Sebastien Pouliot 8e48cbb8ff 2004-07-13 Sebastien Pouliot <[email protected]>
* Evidence.cs: Implemented Equals/GetHashCode and added Clear and
	RemoveType methods for NET_2_0 profile.
	* FileCodeGroup.cs: Added Scope property for NET_2_0 profile.
	* Hash.cs: Added static CreateMD5 and CreateSHA1 for NET_2_0 profile.
	* HashMembershipCondition.cs: Implements IDeserializationCallback and
	ISerializable for NET_2_0 profile.
	* NetCodeGroup.cs: Add methods related to CodeConnectAccess for
	NET_2_0 profile.
	* PolicyException.cs: Implements _Exception for NET_2_0 profile.
	* PolicyLevel.cs: Added Type property for NET_2_0 profile.
	* PolicyStatement.cs: Implemented Equals/GetHashCode for NET_2_0
	profile.

svn path=/trunk/mcs/; revision=31096
2004-07-13 16:46:35 +00:00
Gert Driesen b26ef71adf * Evidence.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29623
2004-06-15 17:55:41 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Sebastien Pouliot 5981cbf89b 2004-01-02 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs: Added to build. Commented IBuildInEvidence
	(not implemented).
	* Evidence.cs: Synchronised collections (IsSynchronized is always true).
	Add Locked property and Security exceptions.
	* Publisher.cs: Now use SecurityElement in ToString. Removed TODO for
	CreateIdentityPermission (Evidence is useless).
	* StrongNameMembershipCondition.cs: Added IConstantMembershipCondition
	interface. Implemented Check method.
	* Url.cs: Implemented CreateIdentityPermission.
	* UrlMembershipCondition.cs: Added IConstantMembershipCondition interface.
	* ZoneMembershipCondition.cs: Added IConstantMembershipCondition
	interface. Implemented Check method.

svn path=/trunk/mcs/; revision=21612
2004-01-03 01:31:51 +00:00
Sebastien Pouliot d6c1ef11d6 2003-06-29 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs: Added [Serializable] attribute to class.
	* Evidence.cs: Added [Serializable] attribute to class.
	* FirstMatchCodeGroup.cs: Added [Serializable] attribute to class.
	* HashMembershipCondition.cs: Added [Serializable] attribute to class.
	* NetCodeGroup.cs: Added [Serializable] attribute to class.
	* PublisherMembershipCondition.cs: Added [Serializable] attribute to class.
	* Zone.cs: Added [Serializable] attribute to class.

svn path=/trunk/mcs/; revision=15733
2003-06-30 02:00:35 +00:00
Jackson Harper 918a74cce2 Copy constructor does not attempt to merge if it recieves a null ref
svn path=/trunk/mcs/; revision=9794
2002-12-20 08:58:03 +00:00
Miguel de Icaza 5cb1e23789 Evidence.cs from Jackson Harper
svn path=/trunk/mcs/; revision=8465
2002-10-22 14:40:02 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Nick Drochak b2dd660e03 2002-02-09 Nick Drochak <[email protected]>
* FileCodeGroup.cs: New file. All done except for GetHashCode and
	Resolve.
	* CodeGroup.cs: Fix small bug in ToXml()
	* Evidence.cs: Added method stub needed by FileCodeGroup.cs.  Added
	MonoTODO's too.

svn path=/trunk/mcs/; revision=2271
2002-02-08 20:01:53 +00:00
Dietmar Maurer bdbde07bc8 more AppDomain updates
svn path=/trunk/mcs/; revision=2156
2002-01-25 10:27:49 +00:00
Sean MacIsaac fc1bf781fa Added stub classes/methods needed by compiler in an attempt to get it
to run in Linux.

svn path=/trunk/mcs/; revision=1171
2001-10-17 03:54:01 +00:00