Author: spouliot
Date: 2005-03-24 13:37:02 -0500 (Thu, 24 Mar 2005)
New Revision: 42229
Modified:
trunk/mcs/class/corlib/Mono.Security.Authenticode/AuthenticodeDeformatter.cs
trunk/mcs/class/corlib/Mono.Security.Authenticode/ChangeLog
Log:
2005-03-24 Sebastien Pouliot <[EMAIL PROTECTED]>
* AuthenticodeDeformatter.cs: Don't hide the SecurityException (e.g.
file access).
Modified:
trunk/mcs/class/corlib/Mono.Security.Authenticode/AuthenticodeDeformatter.cs
===================================================================
---
trunk/mcs/class/corlib/Mono.Security.Authenticode/AuthenticodeDeformatter.cs
2005-03-24 18:35:59 UTC (rev 42228)
+++
trunk/mcs/class/corlib/Mono.Security.Authenticode/AuthenticodeDeformatter.cs
2005-03-24 18:37:02 UTC (rev 42229)
@@ -5,7 +5,7 @@
// Sebastien Pouliot <[EMAIL PROTECTED]>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -30,6 +30,7 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
+using System.Security;
using System.Security.Cryptography;
using Mono.Security.X509;
@@ -79,7 +80,10 @@
try {
CheckSignature (value);
}
- catch {
+ catch (SecurityException) {
+ throw;
+ }
+ catch (Exception) {
reason = 1;
}
}
Modified: trunk/mcs/class/corlib/Mono.Security.Authenticode/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Mono.Security.Authenticode/ChangeLog 2005-03-24
18:35:59 UTC (rev 42228)
+++ trunk/mcs/class/corlib/Mono.Security.Authenticode/ChangeLog 2005-03-24
18:37:02 UTC (rev 42229)
@@ -1,3 +1,8 @@
+2005-03-24 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * AuthenticodeDeformatter.cs: Don't hide the SecurityException (e.g.
+ file access).
+
2004-09-16 Sebastien Pouliot <[EMAIL PROTECTED]>
* AuthenticodeDeformatter.cs: Fixed warning (l4) for unused variables.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches