* X509Certificate2.cs: Ensure we can load certificates from read-only
files (fix bug #79616).
svn path=/trunk/mcs/; revision=66414
+2006-10-08 Sebastien Pouliot <sebastien@ximian.com>
+
+ * X509Certificate2.cs: Ensure we can load certificates from read-only
+ files (fix bug #79616).
+
2006-10-05 Andrew Skiba <andrews@mainsoft.com>
* X509CertificateCollection.cs: remove IEnumerable private imple-
private byte[] Load (string fileName)
{
byte[] data = null;
- using (FileStream fs = new FileStream (fileName, FileMode.Open)) {
+ using (FileStream fs = File.OpenRead (fileName)) {
data = new byte [fs.Length];
fs.Read (data, 0, data.Length);
fs.Close ();