X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftools%2Fsecurity%2Fchktrust.cs;h=0d6c2f06b327ed8fccaed98d0a6726bcb7eb0cd5;hb=c37bbef8f0acae10a6df43c805459cb2b3d2ad51;hp=b58f346816b228279731f8f21917e21de933ce46;hpb=1e356f0aa0da2f3133a9446b1a9b6f0ec0cde8e9;p=mono.git diff --git a/mcs/tools/security/chktrust.cs b/mcs/tools/security/chktrust.cs index b58f346816b..0d6c2f06b32 100644 --- a/mcs/tools/security/chktrust.cs +++ b/mcs/tools/security/chktrust.cs @@ -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) {