Commit Graph
14 Commits
Author SHA1 Message Date
Sebastien Pouliot 402e8ca874 2005-06-23 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs, CodeConnectAccess.cs, Hash.cs, 
	NetCodeGroup.cs, PermissionRequestEvidence.cs, PolicyLevel.cs,
	Publisher.cs. Site.cs, StrongName.cs, TrustManagerContext.cs. Url.cs:
	better comments on remaining TODO (all 2.0 related) to ease grepping.
	Reduced the number of casts in some Equals methods.


svn path=/trunk/mcs/; revision=46438
2005-06-23 17:12:20 +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 eed2ceb512 2005-04-05 Sebastien Pouliot <[email protected]>
* Hash.cs: Added Assert for FileIOPermission to GetData so it's 
	possible to get the Hash evidence under partial trust.


svn path=/trunk/mcs/; revision=42586
2005-04-05 22:44:39 +00:00
Sebastien Pouliot d4ab0b0442 2005-01-11 Sebastien Pouliot <[email protected]>
* Hash.cs: Fix regression in 2.0 to load default (hash) evidences.


svn path=/trunk/mcs/; revision=38728
2005-01-11 20:28:39 +00:00
Sebastien Pouliot 0ca2e0d7da 2005-01-10 Sebastien Pouliot <[email protected]>
* Hash.cs: Fix exception reporting for new methods in 2.0.
	* Publisher.cs: Fixed unit tests failures under 2.0 (some exceptions
	were changed).
	* PublisherMembershipCondition.cs: Fixed unit tests failures under 2.0
	(some exceptions were changed).


svn path=/trunk/mcs/; revision=38664
2005-01-11 01:09:36 +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
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 f298e12dd4 2004-01-26 Sebastien Pouliot <[email protected]>
* AllMembershipCondition.cs: Clean up. Removed FIXME.
	* ApplicationDirectory.cs: Added IBuiltInEvidence (to please corcompare).
	* Hash.cs: Added IBuiltInEvidence (to please corcompare).
	* Publisher.cs: Added IBuiltInEvidence (to please corcompare).
	* Site.cs: Added IBuiltInEvidence (to please corcompare).
	* StrongName.cs: Added IBuiltInEvidence (to please corcompare). Now use
	SecurityElement in ToString. Removed TODO on CreateIdentityPermission
	(evidence isn't required in this case).

svn path=/trunk/mcs/; revision=22498
2004-01-26 15:21:25 +00:00
Sebastien Pouliot 620189bcbf 2003-01-05 Sebastien Pouliot <[email protected]>
* Hash.cs: Added [Serializable] and ISerializable to class declaration.
	Changed how the hash algorithm are created (now use system default
	implementation). Added some exception handling.

svn path=/trunk/mcs/; revision=10189
2003-01-06 00:18:38 +00:00
Jackson Harper 177400c0dd ToString now uses the SecurityElement class, Assembly byte data is cached after the first load
svn path=/trunk/mcs/; revision=8983
2002-11-14 15:04:22 +00:00
Nick Drochak 7f7b6cba58 2002-10-29 Nick Drochak <[email protected]>
* Hash.cs: Fix build issues.  Add some using statements mostly.

svn path=/trunk/mcs/; revision=8660
2002-10-29 14:04:49 +00:00
Jackson Harper 1580b7655d FirstMatchCodeGroup.cs, Hash.cs: New classes, somewhat finished
svn path=/trunk/mcs/; revision=8652
2002-10-29 04:51:58 +00:00