Author: spouliot
Date: 2006-10-08 12:21:36 -0400 (Sun, 08 Oct 2006)
New Revision: 66414
Modified:
trunk/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog
trunk/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs
Log:
2006-10-08 Sebastien Pouliot <[EMAIL PROTECTED]>
* X509Certificate2.cs: Ensure we can load certificates from read-only
files (fix bug #79616).
Modified:
trunk/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog
===================================================================
---
trunk/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog
2006-10-08 16:12:14 UTC (rev 66413)
+++
trunk/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog
2006-10-08 16:21:36 UTC (rev 66414)
@@ -1,3 +1,8 @@
+2006-10-08 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * X509Certificate2.cs: Ensure we can load certificates from read-only
+ files (fix bug #79616).
+
2006-10-05 Andrew Skiba <[EMAIL PROTECTED]>
* X509CertificateCollection.cs: remove IEnumerable private imple-
Modified:
trunk/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs
===================================================================
---
trunk/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs
2006-10-08 16:12:14 UTC (rev 66413)
+++
trunk/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs
2006-10-08 16:21:36 UTC (rev 66414)
@@ -317,7 +317,7 @@
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 ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches