summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorMegan Woods <megan@flygfisk.com>2019-01-14 19:28:29 +1100
committerMegan Woods <megan@flygfisk.com>2019-01-14 19:28:29 +1100
commite62f859d5d77d465efb9bb30f35fe33da61c2409 (patch)
tree847b510f88f61b2ee82721813157191ea7928df7 /crypto/test
parentUpdated EJBCA Example (diff)
downloadBouncyCastle.NET-ed25519-e62f859d5d77d465efb9bb30f35fe33da61c2409.tar.xz
Removed reference to old test.
Added call to set time in EJBCA example.
Diffstat (limited to 'crypto/test')
-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