summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/cms/test/AllTests.cs3
-rw-r--r--crypto/test/src/ejbca/test/EnrollmentExampleTest.cs6
2 files changed, 5 insertions, 4 deletions
diff --git a/crypto/test/src/cms/test/AllTests.cs b/crypto/test/src/cms/test/AllTests.cs
index 7ab5721ac..52ca95f2b 100644
--- a/crypto/test/src/cms/test/AllTests.cs
+++ b/crypto/test/src/cms/test/AllTests.cs
@@ -20,8 +20,7 @@ namespace Org.BouncyCastle.Cms.Tests
         {
             get
             {
-                TestSuite suite = new TestSuite("CMS Tests");
-                suite.Add(new ProtectedMessageTest());
+                TestSuite suite = new TestSuite("CMS Tests");               
                 suite.Add(new CompressedDataTest());
                 suite.Add(new CompressedDataStreamTest());
                 suite.Add(new EnvelopedDataTest());
diff --git a/crypto/test/src/ejbca/test/EnrollmentExampleTest.cs b/crypto/test/src/ejbca/test/EnrollmentExampleTest.cs
index 3a636d8ea..4ee0ae2c3 100644
--- a/crypto/test/src/ejbca/test/EnrollmentExampleTest.cs
+++ b/crypto/test/src/ejbca/test/EnrollmentExampleTest.cs
@@ -1,4 +1,6 @@
-using NUnit.Framework;
+using System;
+using NUnit.Framework;
+using Org.BouncyCastle.Asn1;
 using Org.BouncyCastle.Asn1.Cmp;
 using Org.BouncyCastle.Asn1.Crmf;
 using Org.BouncyCastle.Asn1.X509;
@@ -54,7 +56,7 @@ namespace crypto.test.src.ejbca.test
             GeneralName recipient = new GeneralName(issuerDN);
 
             ProtectedPkiMessageBuilder pbuilder = new ProtectedPkiMessageBuilder(sender, recipient);
-            // pbuilder. SetMessageTime(new Date());
+            pbuilder.SetMessageTime(new DerGeneralizedTime(DateTime.Now));
             // senderNonce
             pbuilder.SetSenderNonce(senderNonce);
             // TransactionId