**** Merged from MCS ****
[mono-project.git] / mcs / class / corlib / System.Security.Policy / ChangeLog
blob834f24589e05c6d1ccd28e8a580ae5293d6a78c4
1 2004-10-20  Sebastien Pouliot  <sebastien@ximian.com>
3         * Evidence.cs: Fix the case where GetPublicKey returns a 0 length
4         byte array so that we don't create an invalid StrongName evidence.
6 2004-09-19  Alexis Christoforides <alexis@thenull.net>
8         * CodeGroup.cs: Changed AddChild() to add a copy of the child, like 
9         the MS implementation.
10         * UnionCodeGroup.cs: Resolve() will now perform union on child code
11         groups.
12         * FileCodeGroup.cs: Resolve() will now perform union on child code
13         groups.
14         * NetCodeGroup.cs: Resolve() will now perform union on child code
15         groups.
17 2004-09-16  Sebastien Pouliot  <sebastien@ximian.com>
19         * PolicyLevel.cs: Fixed warning by re-activating safeguard
21 2004-09-03  Sebastien Pouliot  <sebastien@ximian.com>
23         * CodeGroup.cs: Creates an empty PermissionSet (and not an empty 
24         NamedPermissionSet). Required to run the MSDN library samples.
25         * FileCodeGroup.cs: Fixed Copy so that CodeGroup.Equals would work 
26         preperly. Required to run the MSDN library samples.
27         * FirstMatchCodeGroup.cs: Reworked the Resolve* logic to run the MSDN
28         library samples.
29         * PolicyLevel.cs: Fixed RemoveNamedPermissionSet and (more) complete
30         CreateAppDomainLevel to run the MSDN library samples.
31         * StrongNameMembershipCondition.cs: Fix ToXml to run the MSDN library
32         samples.
34 2004-09-02  Sebastien Pouliot  <sebastien@ximian.com>
36         * Site.cs: Updated to match latest unit tests, i.e. match Fx 1.1 on
37         NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
39 2004-09-01  Sebastien Pouliot  <sebastien@ximian.com>
41         * PolicyLevel.cs: Fixed Reset not to delete/load policy file for 
42         AppDomain level. Added internal Resolve method for class names.
44 2004-08-30  Sebastien Pouliot  <sebastien@ximian.com>
46         * ApplicationDirectory.cs: Now use Uri class to create the local 
47         application directory.
48         * ApplicationDirectoryMembershipCondition.cs: Now use Uri class to
49         CheckEvidence.
50         * Site.cs: Implemented CreateFromUrl using Uri class.
51         * Url.cs: Now use Uri class to prepare URLs.
52         * UrlMembershipCondition.cs: Now use Url class (instead of a string)
53         for URLs.
54         * Zone.cs: Implemented default CreateFromUrl using Uri class.
56 2004-08-26  Sebastien Pouliot  <sebastien@ximian.com>
58         * ApplicationSecurityManager.cs: New stub for Fx 2.0 application trust
59         security manager.
60         * ApplicationSecurityManagerCodeGroup.cs: New stubbed code group for 
61         NET_2_0 profile.
62         * ApplicationTrustCollection.cs: New. ApplicationTrust collection for
63         NET_2_0 profile.
64         * ApplicationTrustEnumerator.cs: New. ApplicationTrust enumerator for
65         NET_2_0 profile.
67 2004-08-26  Sebastien Pouliot  <sebastien@ximian.com>
69         * ApplicationDirectory.cs: Fixed directory validation and ToString.
70         * CodeGroup.cs: Fixed PermissionSetName when policy is null.
71         * Evidence.cs: Fixed Merge for null case. Fixed IsSynchronized for
72         NET_2_0. Uncommented some code for NET_2_0 DomainManager usage.
73         * FileCodeGroup.cs: Fixed Resolve and ResolveMatchingGroup wrt new
74         unit tests.
75         * Gac.cs: Implemented IBuiltInEvidence methods.
76         * Hash.cs: Removed TODO from NET_2_0 as it's hashing seems compatible
77         with Mono ;-). Fixed properties for use with NET_2_0.
78         * HashMembershipCondition.cs: Fixed To|FromXml serialization. Make
79         copies of hash value (not references).
80         * PermissionRequestEvidence.cs: Now make copies of permission sets.
81         * Publisher.cs: Namespace cleanup, implemented GetRequiredSize.
82         * Site.cs: Namespace cleanup, implemented GetRequiredSize.
83         * StrongName.cs: Namespace cleanup.
84         * UnionCodeGroup.cs: Namespace cleanup, converted spaces to tabs.
85         * Url.cs: Namespace cleanup, implemented GetRequiredSize.
86         * Zone.cs: Namespace cleanup, globalization and added more details in 
87         exception.
89 2004-08-24  Sebastien Pouliot  <sebastien@ximian.com>
91         * UrlMembershipCondition.cs: Check now only iterate host provided
92         evidences.
93         * ZoneMembershipCondition.cs: FromXml doesn't throw exceptions if Zone
94         attribute is missing.
96 2004-08-23  Sebastien Pouliot  <sebastien@ximian.com>
98         * AllMembershipCondition.cs: Use common template for membership 
99         condition.
100         * ApplicationDirectoryMembershipCondition.cs: Use common template for
101         membership condition. Limit evidences checks to host provided. 
102         "Mostly" functionnal - still need to check c14n issues.
103         * ApplicationMembershipCondition.cs: New. For NET_2_0 profile.
104         * DomainApplicationMembershipCondition.cs: New. For NET_2_0 profile.
105         * GacMembershipCondition.cs: Use common template for membership 
106         condition. Limit evidences checks to host provided.
107         * HashMembershipCondition.cs: Use common template for membership 
108         condition. Limit evidences checks to host provided.
109         * MembershipConditionHelper.cs: Internal class for common membership
110         condition classes functionalities.
111         * PublisherMembershipCondition.cs: Use common template for membership 
112         condition.
113         * SiteMembershipCondition.cs: Use common template for membership 
114         condition.
115         * StrongNameMembershipCondition.cs: Use common template for membership
116         condition.
117         * UrlMembershipCondition.cs: Use common template for membership 
118         condition.
119         * ZoneMembershipCondition.cs: Use common template for membership 
120         condition.
122 2004-08-12  Sebastien Pouliot  <sebastien@ximian.com>
124         * ZoneMembershipCondition.cs: Added missing tag name validation in
125         FromXml.
127 2004-08-11  Sebastien Pouliot  <sebastien@ximian.com>
129         * ApplicationSecurityInfo.cs: Added missing interfaces.
130         * PolicyLevel.cs: Load policies from files, using *.default files if
131         policy is missing (like Fx 2.0). Fixed Resolve never to return null.
132         Added hardcoded policy defaults (to be updated as CAS progress) in 
133         case no policy file, nor default files, are available.
134         * PolicyStatement.cs: Fixed AttributeString. Added internal static
135         Empty method (helper).
137 2004-08-09  Sebastien Pouliot  <sebastien@ximian.com>
139         * ApplicationSecurityInfo.cs: New. Stub for NET_2_0.
141 2004-08-08  Sebastien Pouliot  <sebastien@ximian.com>
143         * Evidence.cs: Added new static internal method to create default
144         host evidences for an assembly.
145         * FileCodeGroup.cs: Added incomplete (no children) policy resolution 
146         in order to load more complex policies.
147         * Hash.cs: Added ISerialization support (required for cross-domain 
148         evidence support, like nunit).
149         * NetCodeGroup.cs: Added incomplete (no children) policy resolution in
150         order to load more complex policies.
152 2004-08-04  Sebastien Pouliot  <sebastien@ximian.com>
154         * Gac.cs: New. Implemented Gac evidence for NET_2_0.
155         * GacMembershipCondition.cs: New. for NET_2_0.
156         * Zone.cs: (Very) basic implementation of CreateFromUrl so we can
157         create a Zone evidence using an assembly location (file://...).
158         * ZoneMembershipCondition.cs: Fixed implementation wrt new unit tests.
159         Added missing "class" attribute in ToXml.
161 2004-08-03  Sebastien Pouliot  <sebastien@ximian.com>
163         * CodeGroup.cs: Added PolicyLevel parameter to internal 
164         constructor. Added support for attribute PermissionSetName in
165         FromXml.
166         * FileCodeGroup.cs: Added PolicyLevel parameter to internal 
167         constructor.
168         * FirstMatchCodeGroup.cs: Added PolicyLevel parameter to internal 
169         constructor.
170         * NetCodeGroup.cs: Added PolicyLevel parameter to internal 
171         constructor.
172         * PolicyLevel.cs: Throw a PolicyException when asked to save a 
173         AppDomain policy. Use new CodeGroup constructor with "this".
174         * UnionCodeGroup.cs: Added PolicyLevel parameter to internal 
175         constructor. Added Copy(bool) to copy, or not, the childs.
177 2004-08-02  Sebastien Pouliot  <sebastien@ximian.com>
179         * CodeGroup.cs: Fixed Equals (true) which, strangely, only compares
180         on level of children.
181         * HashMembershipCondition.cs: Added empty constructor so Activator.
182         CreateInstance can work.
183         * PolicyLevel.cs: Implemented PolicyType (NET_2_0), Resolve and Save.
184         * PublisherMembershipCondition.cs: Added empty constructor so 
185         Activator.CreateInstance can work.
186         * SiteMembershipCondition.cs: Added empty constructor so Activator.
187         CreateInstance can work.
188         * StrongNameMembershipCondition.cs: Added empty constructor so 
189         Activator.CreateInstance can work.
190         * UnionCodeGroup.cs: Partial implementation for Resolve (missing 
191         children support). Implemented ResolveMatchingCodeGroups.
192         * ZoneMembershipCondition.cs: Added empty constructor so Activator.
193         CreateInstance can work. Removed "class" validation in FromXml.
195 2004-07-14  Sebastien Pouliot  <sebastien@ximian.com>
197         * NetCodeGroup.cs: Added Equals/GetHashCode methods to NET_2_0 profile.
198         * PolicyLevel.cs: Added internal constructor to load a policy file 
199         from SecurityManager.
201 2004-07-13  Sebastien Pouliot  <sebastien@ximian.com>
203         * Evidence.cs: Implemented Equals/GetHashCode and added Clear and 
204         RemoveType methods for NET_2_0 profile. 
205         * FileCodeGroup.cs: Added Scope property for NET_2_0 profile.
206         * Hash.cs: Added static CreateMD5 and CreateSHA1 for NET_2_0 profile.
207         * HashMembershipCondition.cs: Implements IDeserializationCallback and 
208         ISerializable for NET_2_0 profile.
209         * NetCodeGroup.cs: Add methods related to CodeConnectAccess for 
210         NET_2_0 profile.
211         * PolicyException.cs: Implements _Exception for NET_2_0 profile.
212         * PolicyLevel.cs: Added Type property for NET_2_0 profile.
213         * PolicyStatement.cs: Implemented Equals/GetHashCode for NET_2_0 
214         profile.
216 2004-07-13  Sebastien Pouliot  <sebastien@ximian.com>
218         * ApplicationDefaultCodeGroup.cs: New class in Fx 2.0.
219         * ApplicationInstallScope.cs: New enum in Fx 2.0.
220         * ApplicationTrust.cs: New class in Fx 2.0.
221         * ApplicationVersionMatch.cs: New enum in Fx 2.0.
222         * CodeConnectAccess.cs: New class in Fx 2.0.
223         * CodeGroupGrantScope.cs: New enum in Fx 2.0.
224         * IApplicationTrustManager.cs: New interface in Fx 2.0.
225         * ITrustLicenseIssuerCollection.cs: New interface in Fx 2.0.
226         * ITrustManager.cs: New interface in Fx 2.0.
227         * ITrustManagerConfig.cs: New interface in Fx 2.0.
228         * PromptingLevel.cs: New enum in Fx 2.0.
229         * ProvideAssemblyEvidenceEventArgs.cs: New class in Fx 2.0.
230         * TrustLicenseIssuer.cs: New class in Fx 2.0.
231         * TrustManagerContext.cs: New class in Fx 2.0.
232         * TrustManagerUIContext.cs: New enum in Fx 2.0.
233         * TrustManagerZoneConfig.cs: New class in Fx 2.0.
235 2004-06-18  Sebastien Pouliot  <sebastien@ximian.com>
237         * StrongNameMembershipCondition.cs: Added missing [Serializable] 
238         attribute.
239         * ZoneMembershipCondition.cs: Added missing [Serializable] attribute.
241 2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
242         
243         * Evidence.cs: added TODO for serialization
245 2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
247         * Publisher.cs: removed extra finalizer to fix public API 
248         signature, renamed private field for serialization compatibility
249         with MS.NET
251 2004-04-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
253         * Url.cs: Call invariant ToUpper
255 2004-03-22  Sebastien Pouliot  <sebastien@ximian.com>
257         * PublisherMembershipCondition.cs: Now use CryptoConvert for 
258         Hexadecimal convertions.
260 2004-01-28  Sebastien Pouliot  <spouliot@videotron.ca>
262         * StrongName.cs: XML now use Type.Name (instead of Type.FullName) to 
263         match the XML generated by MS.
265 2004-01-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
267         * CodeGroup.cs: make it build with mcs. This is a BUG.
269 2004-01-26  Sebastien Pouliot  <spouliot@videotron.ca>
271         * AllMembershipCondition.cs: Clean up. Removed FIXME.
272         * ApplicationDirectoryMembershipCondition.cs: Basic (incomplete) Check.
273         * ApplicationDirectory.cs: Added IBuiltInEvidence (to please corcompare).
274         * CodeGroup.cs: Now use Activator for [Named]PermissionSet. Change 
275         Equals so it can compile with mcs.
276         * Hash.cs: Added IBuiltInEvidence (to please corcompare).
277         * PolicyLevel.cs: Minor changes to use the new empty constructors in 
278         [Named]PermissionSet.
279         * PermissionRequestEvidence.cs: Added IBuiltInEvidence (to please 
280         corcompare). Now use SecurityElement in ToString.
281         * Publisher.cs: Added IBuiltInEvidence (to please corcompare).
282         * Site.cs: Added IBuiltInEvidence (to please corcompare).
283         * StrongName.cs: Added IBuiltInEvidence (to please corcompare). Now use
284         SecurityElement in ToString. Removed TODO on CreateIdentityPermission 
285         (evidence isn't required in this case).
287 2004-01-14  Sebastien Pouliot  <spouliot@videotron.ca>
289         * Url.cs: Added IBuiltInEvidence (corcompare) and new static methods 
290         to prepare and compare urls.
291         * UrlMembershipCondition.cs: Added missing [Serializable] attribute 
292         and set_Url property. Implemented Check. Fixed Equals and To/FromXml.
294 2004-01-05  Sebastien Pouliot  <spouliot@videotron.ca>
296         * CodeGroup.cs: Added internal constructor for PolicyLevel. Complete
297         FromXml. Various small fixes to match the unit tests.
298         * FileCodeGroup.cs: Added internal constructor for PolicyLevel. 
299         Implemented GetHashCode (may not be exactly the same as MS).
300         * FirstMatchCodeGroup.cs: Added internal constructor for PolicyLevel.
301         Copy method now returns a deep copy (as documented).
302         * NetCodeGroup.cs: Added internal constructor for PolicyLevel. Fixed 
303         "Same site Web" (as documented) to "Same site Web." (as real life).
304         Copy method now returns a deep copy (as documented).
305         * PolicyLevel.cs: Added missing ChangeNamedPermissionSet. Implemented
306         FromXml method. Added internal methods to load from file or string. 
307         Added/changed lots of things to match unit tests.
308         * StrongNameMembershipCondition.cs: Added internal constructor for 
309         PolicyLevel. Fixed Equals.
310         * UnionCodeGroup.cs: Added internal constructor for PolicyLevel.
311         Copy method now returns a deep copy (as documented).
313 2004-01-03  Sebastien Pouliot  <spouliot@videotron.ca>
315         * Site.cs: Completed implementation.
316         * SiteMembershipCondition.cs: New. Implemented.
318 2004-01-02  Sebastien Pouliot  <spouliot@videotron.ca>
320         * ApplicationDirectory.cs: Added to build. Commented IBuildInEvidence 
321         (not implemented).
322         * Evidence.cs: Synchronised collections (IsSynchronized is always true).
323         Add Locked property and Security exceptions.
324         * Publisher.cs: Now use SecurityElement in ToString. Removed TODO for
325         CreateIdentityPermission (Evidence is useless).
326         * StrongNameMembershipCondition.cs: Added IConstantMembershipCondition 
327         interface. Implemented Check method.
328         * Url.cs: Implemented CreateIdentityPermission.
329         * UrlMembershipCondition.cs: Added IConstantMembershipCondition interface.
330         * ZoneMembershipCondition.cs: Added IConstantMembershipCondition 
331         interface. Implemented Check method.
333 2004-01-01  Nick Drochak  <ndrochak@gol.com>
335         * PermissionRequestEvidence.cs: New File
337 2003-12-15  Sebastien Pouliot  <spouliot@videotron.ca>
339         * PublisherMembershipCondition.cs: Completed TODO.
341 2003-08-05  Duncan Mak  <duncan@ximian.com>
343         * ZoneMembershipCondition.cs: Added.
345         * StrongNameMembershipCondition.cs:
346         * UrlMembershipCondition.cs: (FromXml): Throw exceptions when the
347         headers do not match.
349         * PolicyStatement.cs (FromXml):
350         (ToXml): Implemented.
352 2003-08-04  Duncan Mak  <duncan@ximian.com>
353         
354         * IConstantMembershipCondition.cs: added.
356         * AllMembershipCondition.cs: 
357         * ApplicationDirectoryMembershipCondition.cs:
358         * PublisherMembershipCondition.cs: Added
359         IConstantMembershipCondition marker interface.
361 2003-08-03  Duncan Mak  <duncan@ximian.com>
363         * StrongNameMembershipCondition.cs:
364         * UrlMembershipCondition.cs: Implemented.
366 2003-08-01  Duncan Mak  <duncan@ximian.com>
368         * PolicyStatement.cs (Copy): Added.
370         * PolicyLevel.cs: Implemented missing methods.
372 2003-07-31  Duncan Mak  <duncan@ximian.com>
374         * Site.cs (IsValidSite): new method for checking the validing of
375         the site name.
377 2003-07-30  Duncan Mak  <duncan@ximian.com>
379         * Url.cs (ToString): It should output an XML string, not just the
380         plain url.
382 2003-07-28  Duncan Mak  <duncan@ximian.com>
384         * Site.cs: 
385         * UnionCodeGroup.cs: 
386         * Url.cs: Added to CVS, basic functionality implemented, except
387         for CreateIdentityPermission (Site, Url) and the Resolve methods
388         in UnionCodeGroup.
390 2003-06-29  Sebastien Pouliot  <spouliot@videotron.ca>
392         * ApplicationDirectory.cs: Added [Serializable] attribute to class.
393         * Evidence.cs: Added [Serializable] attribute to class.
394         * FirstMatchCodeGroup.cs: Added [Serializable] attribute to class.
395         * HashMembershipCondition.cs: Added [Serializable] attribute to class.
396         * NetCodeGroup.cs: Added [Serializable] attribute to class.
397         * PublisherMembershipCondition.cs: Added [Serializable] attribute to class.
398         * Zone.cs: Added [Serializable] attribute to class.
400 2003-01-05  Sebastien Pouliot  <spouliot@videotron.ca>
402         * Hash.cs: Added [Serializable] and ISerializable to class declaration.
403         Changed how the hash algorithm are created (now use system default 
404         implementation). Added some exception handling.
406 2002-12-20 Jackson Harper <jackson@latitudegeo.com>
408         * Evidence.cs: Copy constructor does not attempt to merge if it recieves a null ref
410 2002-12-16  Sebastien Pouliot  <spouliot@videotron.ca>
412         * StrongName.cs: New. Implemented.
414 2002-12-15  Sebastien Pouliot  <spouliot@videotron.ca>
416         * Publisher.cs: New. Implemented.
417         * PublisherMembershipCondition.cs: New. X509 related stuff implemented.
419 2002-11-28 Jackson Harper <jackson@latitudegeo.com>
421         * NetCodeGroup.cs: Added file
423 2002-11-17 Jackson Harper <jackson@latitudegeo.com>
425         * FirstMatchCodeGroup.cs: Added Copyright
426         
427 2002-11-17 Jackson Harper <jackson@latitudegeo.com>
429         * HashMembershipCondition.cs: Added file
431 2002-11-14 Jackson Harper <jackson@latitudegeo.com>
433         * Hash.cs: ToString now uses the SecurityElement class, Assembly byte data is cached after the first load
435 2002-11-11 Jackson Harper <jackson@latitudegeo.com>
437         * FirstMatchCodeGroup.cs: Made class sealed
439 2002-11-5 Jackson Harper <jackson@latitudegeo.com>
441         * ApplicationDirectory.cs: Fixed (C) in file header
442         
443 2002-10-29  Nick Drochak  <ndrochak@gol.com>
445         * Hash.cs: Fix build issues.  Add some using statements mostly.
447 2002-10-28 Jackson Harper <jackson@latitudegeo.com>
449         * FirstMatchCodeGroup.cs, Hash.cs: New classes, somewhat finished
450         
451 2002-10-28 Jackson Harper <jackson@latitudegeo.com>
453         * ApplicationDirectoryMembershipCondition.cs: Implemented most methods
455 2002-10-28 Jackson Harper <jackson@latitudegeo.com>
457         * ApplicationDirectory.cs: Added class
459 2002-10-28 Jackson Harper <jackson@latitudegeo.com>
461         * AllMembershipCondition.cs: Made GetHashCode act more like 
462         MS version. All AllMembershipCondition instance's will return 
463         the same hashcode but this hashcode should still be unique to 
464         AllMembership Condition's.
467 2002-08-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
469         * IBuiltInEvidence.cs: New file.
470         * Zone.cs: New file. Implemented.
472 2002-06-10  Duncan Mak  <duncan@ximian.com>
474         * IMembershipCondition.cs (Equals): Add missing methods.
476 2002-03-17  Nick Drochak  <ndrochak@gol.com>
478         * ApplicationDirectoryMembershipCondition.cs: New file (stub)
480 2002-02-14  Nick Drochak  <ndrochak@gol.com>
482         * FileCodeGroup.cs: Finish Equals()
484 2002-02-13  Dan Lewis   <dihlewis@yahoo.co.uk>
486         * PolicyStatement: New file (stub)
488 2002-02-09  Nick Drochak  <ndrochak@gol.com>
490         * FileCodeGroup.cs: New file. All done except for GetHashCode and 
491         Resolve.
492         * CodeGroup.cs: Fix small bug in ToXml()
493         * Evidence.cs: Added method stub needed by FileCodeGroup.cs.  Added 
494         MonoTODO's too.
496 2002-02-07  Nick Drochak  <ndrochak@gol.com>
498         * CodeGroup.cs: Went as far as I can for now.  Need to look at
499         the (To|From)XML methods when I understand PolicyLevels better.
501 2002-02-02  Nick Drochak  <ndrochak@gol.com>
503         * CodeGroup.cs: Not done, but checking in now just in case
505 2002-01-30  Nick Drochak  <ndrochak@gol.com>
507         * CodeGroup.cs: New file.  Not nearly done with this, but saving it
508         in cvs just in case.
509         * PolicyLevel.cs: Sarted just a bit on this then relized i need CodeGroup
510         first (among others).  Checking in for disaster recovery.
512 2002-01-29  Nick Drochak  <ndrochak@gol.com>
514         * PolicyStatementAttribute.cs: New file.
515         * PolicyException.cs: Use correct namespace
516         * PolicyLevel.cs: Add [Serializable] to class
518 2002-01-19  Duncan Mak  <duncan@ximian.com>
520         * PolicyException.cs: New File.
522 2002-01-03  Nick Drochak  <ndrochak@gol.com>
524         * IIdentityPermissionFactory.cs: New File
525         * IMembershipCondition: New File
527 2001-12-29  Nick Drochak  <ndrochak@gol.com>
529         * PolicyLevel.cs: New file
531 2001-12-21  Miguel de Icaza  <miguel@ximian.com>
533         * SecurityElement.cs, CodeAccessPermission.cs IPermission.cs
534         IStackWalk.cs SecurityElement.cs ISecurityEncodable.cs: New files.
535