Author: spouliot
Date: 2006-08-08 08:50:07 -0400 (Tue, 08 Aug 2006)
New Revision: 63479

Modified:
   
trunk/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/ChangeLog
   
trunk/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509Cert20Test.cs
Log:
2006-08-08  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * X509Cert20Test.cs: Add a test case with an unrequired password to 
        decode a lonely DER x.509 certificate.



Modified: 
trunk/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/ChangeLog
===================================================================
--- 
trunk/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/ChangeLog
 2006-08-08 12:46:56 UTC (rev 63478)
+++ 
trunk/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/ChangeLog
 2006-08-08 12:50:07 UTC (rev 63479)
@@ -1,3 +1,8 @@
+2006-08-08  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * X509Cert20Test.cs: Add a test case with an unrequired password to 
+       decode a lonely DER x.509 certificate.
+
 2006-07-31  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * X509CapiTest.cs : ConstructorIntPtrZero() is valid only under 1.x.

Modified: 
trunk/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509Cert20Test.cs
===================================================================
--- 
trunk/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509Cert20Test.cs
 2006-08-08 12:46:56 UTC (rev 63478)
+++ 
trunk/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509Cert20Test.cs
 2006-08-08 12:50:07 UTC (rev 63479)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <[EMAIL PROTECTED]>
 //
-// Copyright (C) 2005 Novell Inc. (http://www.novell.com)
+// Copyright (C) 2005-2006 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
@@ -59,7 +59,14 @@
                        Assert.IsTrue (x2.Equals (x1), "Equals-12-X");
                        Assert.IsTrue (x2.Equals ((object)x1), "Equals-12-O");
                }
+
+               [Test]
+               public void UnrequiredPassword ()
+               {
+                       // MS permits to supply an unrequired password for an 
(unencrypted) DER certificate
+                       X509Certificate x1 = new X509Certificate (cert1, 
"mono");
+               }
        }
 }
 
-#endif
\ No newline at end of file
+#endif

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to