This should fix #76928. This fix incorporates ideas from a patch
[mono.git] / mcs / class / Mono.Security / Mono.Security.X509 / ChangeLog
1 2006-01-05  Sebastien Pouliot  <sebastien@ximian.com>
2
3         * X509Extension.cs: Extension data may be encapsulated (i.e. ASN.1
4         data inside the octet string) if it comes from the X509Certificate 
5         parser.
6
7 2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>
8
9         * X509Extension.cs: Added setter for Critical property (fix #77154).
10         Fixed asymmetry between encoding and decoding (fix #75781).
11
12 2005-12-16  Sebastien Pouliot  <sebastien@ximian.com> 
13
14         * X509Chain.cs: Fix chain building. Patch from Vincent Cote-Roy.
15
16 2005-11-18  Sebastien Pouliot  <sebastien@ximian.com> 
17
18         * X509Extension.cs: Changed default ctor to protected to help 
19         extensibility outside of Mono.Security.dll (fix bug #76742).
20
21 2005-11-04  Sebastien Pouliot  <sebastien@ximian.com> 
22  
23         * PKCS12.cs: It's now possible to add multiple keys of the same size
24         inside a pkcs12 file. Fix bug #76627.
25
26 2005-11-04  Sebastien Pouliot  <sebastien@ximian.com>
27
28         * PKCS12.cs: Added MaximumPasswordLength property to allow decoding 
29         the password with a length limits like MS PFXImportCertStore does.
30         In this case you just have to assign the value CryptoApiPasswordLimit
31         to the new static property.
32
33 2005-10-11  Sebastien Pouliot  <sebastien@ximian.com> 
34  
35         * X509Certificate.cs: Fixed bug #76407. ValidFrom and ValidUntil are
36         local date/time so IsCurrent most also use a local date/time.
37         * X509CRL.cs: ValidFrom and ValidUntil are local date/time so 
38         IsCurrent most also use a local date/time.
39
40 2005-10-06  Sebastien Pouliot  <sebastien@ximian.com>
41
42         * X509Chain.cs: Fixed the case where no chain is present (self signed)
43
44 2005-09-09  Sebastien Pouliot  <sebastien@ximian.com>
45
46         * X509Certificate.cs: Fixed version property (bug #76012). Added
47         ISerializable (for 2.0 so we're not breaking current compatibility).
48
49 2005-08-29  Sebastien Pouliot  <sebastien@ximian.com>
50
51         * X501Name.cs: Fixed quoted (bug #75780) and escaped values. Added
52         parsing for "direct" OID values. Plugged DC and UID with new X520 
53         classes.
54         * X520Attributes.cs: Added support for SerialNumber (fix bug #75783),
55         DomainComponent, UserId and Oid.
56
57 2005-08-12  Sebastien Pouliot  <sebastien@ximian.com>
58
59         * X520Attributes.cs: Don't select PRINTABLESTRING for non 7bits 
60         values. Fix bug #75782. Based on patch from Daniel Granath.
61
62 2005-06-29  Sebastien Pouliot  <sebastien@ximian.com>
63
64         * X509CRL.cs: Fix the case where no entry are present in the CRL (as
65         the structure is optional).
66
67 2005-04-26  Sebastien Pouliot  <sebastien@ximian.com>
68
69         * X509Certificate.cs: DSA and RSA properties are now cached. In 2.0
70         they also have a set accessor.
71         * PKCS12.cs: Modified code to allow providing the password as a byte
72         array (the new constructor is available in 2.0).
73
74 2005-02-25  Sebastien Pouliot  <sebastien@ximian.com>
75
76         * X501Name.cs: Added support for multiple entries in a same set.
77
78 2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>
79
80         * X509Certificate.cs: Fixed NullReferenceException when asking for
81         data that wasn't a proper X.509 certificate.
82
83 2004-12-13  Sebastien Pouliot  <sebastien@ximian.com>
84
85         * X509Certificate.cs: Directly use the MD2 class when compiled in 
86         Mono.Security.dll assembly (even if not configured in machine.config).
87
88 2004-09-17  Sebastien Pouliot  <sebastien@ximian.com>
89
90         * PKCS12.cs: Fixed all level 4 compilation warnings.
91         * X501Name.cs: Fixed all level 4 compilation warnings.
92         * X509Certificate.cs: Fixed all level 4 compilation warnings.
93         * X509CertificateBuilder.cs: Fixed all level 4 compilation warnings.
94         * X509Extension.cs: In synch with corlib version. Fixed all level 4 
95         compilation warnings.
96         * X520Attributes.cs: Updated to check upperbounds - which fixed level
97         4 compilation warnings.
98
99 2004-09-07  Sebastien Pouliot  <sebastien@ximian.com>
100
101         * X509Chain.cs: Fixed a bug when constructing a certificate chain from
102         a collection (endless loop). Fixed bug when Reset-ing an empty chain.
103
104 2004-08-10  Sebastien Pouliot  <sebastien@ximian.com>
105
106         * X509Store.cs: Now returns empty collection/list for certificates/
107         CRL when access to a store is denied.
108
109 2004-07-15  Sebastien Pouliot  <sebastien@ximian.com>
110
111         * X501Name.cs: Support for E (email) in FromString.
112         * X520Attributes.cs: Added X520.EmailAddress.
113         Both patches fix bug #61241 and were contributed by Ianier Munoz.
114
115 2004-05-27  Sebastien Pouliot  <sebastien@ximian.com>
116
117         * X509Certificate.cs: Rethrow original exception when parsing X.509 
118         certificates (inside a CryptographicException) so people can see if 
119         their changes affects certificate decoding.
120
121 2004-05-12  Jesper Pedersen  <jep@itplus.dk>
122
123         * PKCS12.cs: Removed file exists check from SaveToFile(). Removed 
124         Equals() and GetHashCode(). Clone the original iteration count.
125         
126 2004-05-06  Jesper Pedersen  <jep@itplus.dk>
127
128         * PKCS12.cs: Fixed synchronization with X509CertificateCollection in 
129         GetBytes ().
130
131 2004-05-05  Jesper Pedersen  <jep@itplus.dk>
132
133         * PKCS12.cs: Added support for SafeBag attributes. Added support for 
134         Clone() (ICloneable), Equals and GetHashCode. New methods:
135         - AddCertificate (X509Certificate cert)
136         - AddCertificate (X509Certificate cert, IDictionary attributes)
137         - RemoveCertificate (X509Certificate cert)
138         - RemoveCertificate (X509Certificate cert, IDictionary attributes)
139         - AddPkcs8ShroudedKeyBag (AsymmetricAlgorithm aa)
140         - AddPkcs8ShroudedKeyBag (AsymmetricAlgorithm aa, IDictionary attributes)
141         - RemovePkcs8ShroudedKeyBag (AsymmetricAlgorithm aa)
142         - AddKeyBag (AsymmetricAlgorithm aa)
143         - AddKeyBag (AsymmetricAlgorithm aa, IDictionary attributes)
144         - RemoveKeyBag (AsymmetricAlgorithm aa)
145         - AsymmetricAlgorithm GetAsymmetricAlgorithm (IDictionary attrs)
146         - X509Certificate GetCertificate (IDictionary attrs)
147         - IDictionary GetAttributes (AsymmetricAlgorithm aa) 
148         - IDictionary GetAttributes (X509Certificate cert)
149
150 2004-04-22  Sebastien Pouliot  <sebastien@ximian.com>
151
152         * PKCS12.cs: FxCop-ized. CLS compliance.
153         * X501Name.cs: FxCop-ized.
154         * X509Builder.cs: FxCop-ized. Replaced Array.Copy with 
155         Buffer.BlockCopy.
156         * X509CRL.cs: FxCop-ized. Replaced Array.Copy with Buffer.BlockCopy.
157         * X509Certificate.cs: FxCop-ized. Replaced Array.Copy with 
158         Buffer.BlockCopy. Removed unused private method GetHash.
159         * X509CertificateBuilder.cs: Ajusted with changes. Replaced 
160         Array.Copy with Buffer.BlockCopy.
161         * X509CertificateCollection.cs: Added INSIDE_CORLIB as the class is
162         shared with corlib assembly.
163         * X509Chain.cs: FxCop-ized. Removed old ITrustAnchor support.
164         * X509ChainStatusFlags.cs: Added missing [Flags].
165         * X509Extension.cs: FxCop-ized. Added Equals, GetHashCode methods.
166         * X509Extensions.cs: FxCop-ized. Sealed class, renamed to 
167         X509ExtensionCollection and inherit from CollectionBase. Added missing
168         methods.
169         * X509Store.cs: FxCop-ized.
170         * X509StoreManager.cs: FxCop-ized. Sealed class.
171         * X509Stores.cs: Added INSIDE_CORLIB as the class is shared with 
172         corlib assembly.
173         * X520Attributes.cs: FxCop-ized. Added INSIDE_CORLIB.
174
175 2004-04-02  Lluis Sanchez Gual  <lluis@ximian.com>
176
177         * X509Chain.cs: Fixed build for net_1_0 profile.
178
179 2004-03-17  Jesper Pedersen  <jep@itplus.dk>
180
181         * PKCS12.cs: Fixed sequence problem in Pkcs8ShroudedKeyBag. Fixed key
182         bag implementation in GetBytes. Moved key bag implementation in 
183         GetBytes to fit OpenSSL. Added NULL digest in MAC (GetBytes) to fit
184         OpenSSL. Added SaveToFile method.
185
186 2004-03-10  Sebastien Pouliot  <sebastien@ximian.com>
187
188         * PKCS12.cs: Completed GetBytes() so it is now possible to encode
189         / encrypt PKCS12 files.
190
191 2004-02-26  Sebastien Pouliot  <sebastien@ximian.com>
192
193         * X509Store.cs: Changed not to use base64 in filenames as it can 
194         conflict with path separators. Now use plain hex. Now catch
195         incorrectly encoded certificates / CRL in stores. Added Name property.
196
197 2004-02-24  Sebastien Pouliot  <sebastien@ximian.com>
198
199         * X509Certificate.cs: Add support for the OID "1.3.14.3.2.29" (SHA1 
200         with RSA). Added a fix for "really" null algorithm parameters.
201         * X509CertificateCollection.cs: Fixed Contains and IndexOf (worked
202         on objects but not for the same certificate in a different object).
203
204 2004-02-23  Sebastien Pouliot  <sebastien@ximian.com>
205
206         * TestAnchors.cs: Removed - no need to be hardcoded anymore.
207         * X509Chain.cs: Updated to use the new store for trusted roots.
208         * X509CRL.cs: New. Certificate Revocation List v1/v2 support.
209         * X509Store.cs: New. Managed each individual store (with or
210         without CRL support).
211         * X509StoreManager.cs: New. Certificate Store Manager to access
212         user and machine stores and to merge them when required.
213         * X509Stores.cs: New. Certificate stores group for either the
214         current user or the local machine.
215
216 2004-02-20  Sebastien Pouliot  <sebastien@ximian.com>
217
218         * X509Chain.cs: Added an option to use a pre-built chain (like TLS
219         offers) to save time rebuilding it. Added some validations and more
220         detailled status. Still a LOT to do!
221         * X509ChainStatusFlags.cs: New. Status code for the results of the
222         chain building and verification.
223
224 2003-12-15  Sebastien Pouliot  <spouliot@videotron.ca>
225
226         * TrustAnchors.cs: Added a new trusted root, Thawte, for code signing.
227
228 2003-12-07  Sebastien Pouliot  <spouliot@videotron.ca>
229
230         * PKCS12.cs: New. PKCS#12 implementation. Only decoding is working
231         right now.
232
233 2003-09-01  Sebastien Pouliot  <spouliot@videotron.ca>
234
235         * ITrustAnchors.cs: New. Interface to trust anchors.
236         * TestAnchors.cs: New. Include 2 tests anchors: Microsoft Root Agency
237         (for Windows compatibility) and Mono Test Root.
238         * TrustAnchors.cs: New. Include some widely used (commercial) code 
239         signing root certificates.
240         * X509CertificateCollection.cs: New. Collection for Mono's X509 
241         certificates.
242         * X509Chain.cs: New. MINIMAL certificate chaining engine to support
243         Authenticode(tm). VERY PARTIAL IMPLEMENTATION!!!
244
245 2003-03-15  Sebastien Pouliot  <spouliot@videotron.ca>
246
247         * X501Name.cs: New. X.501 Distinguished Names stuff
248         * X509Builder.cs: New. Abstract class for building X.509 related
249         structures (like certificates and CRLs).
250         * X509Certificate.cs: New. A more complete class to handle X.509
251         certificates.
252         * X509CertificateBuilder.cs: New. Class to build X.509 certificates.
253         * X509Extension.cs: New. A base class for all X.509 extensions.
254         * X509Extensions.cs: New. X509Extension collection.
255         * X520Attributes.cs: New. X.520 attributes (mainly for X501 names)