[corcompare] Use only C# known parameter type attributes for methods signatures
[mono.git] / mcs / tools / security / chktrust.cs
index b58f346816b228279731f8f21917e21de933ce46..0d6c2f06b327ed8fccaed98d0a6726bcb7eb0cd5 100644 (file)
@@ -23,17 +23,7 @@ namespace Mono.Tools {
 
                static private void Header () 
                {
-                       Assembly a = Assembly.GetExecutingAssembly ();
-                       AssemblyName an = a.GetName ();
-
-                       object [] att = a.GetCustomAttributes (typeof (AssemblyTitleAttribute), false);
-                       string title = ((att.Length > 0) ? ((AssemblyTitleAttribute) att [0]).Title : "Mono ChkTrust");
-
-                       att = a.GetCustomAttributes (typeof (AssemblyCopyrightAttribute), false);
-                       string copyright = ((att.Length > 0) ? ((AssemblyCopyrightAttribute) att [0]).Copyright : "");
-
-                       Console.WriteLine ("{0} {1}", title, an.Version.ToString ());
-                       Console.WriteLine ("{0}{1}", copyright, Environment.NewLine);
+                       Console.WriteLine (new AssemblyInfo ().ToString ());
                }
 
                static private void Help () 
@@ -69,7 +59,7 @@ namespace Mono.Tools {
                                Console.WriteLine ("INFO! {0} was timestamped on {1}", fileName, a.Timestamp);
                        }
 
-                       if (!a.IsTrusted ()) {
+                       if (a.Reason > 0) {
                                string msg = null;
                                // FAILURES
                                switch (a.Reason) {