From e62f859d5d77d465efb9bb30f35fe33da61c2409 Mon Sep 17 00:00:00 2001 From: Megan Woods Date: Mon, 14 Jan 2019 19:28:29 +1100 Subject: Removed reference to old test. Added call to set time in EJBCA example. --- crypto/test/src/cms/test/AllTests.cs | 3 +-- crypto/test/src/ejbca/test/EnrollmentExampleTest.cs | 6 ++++-- 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 -- cgit 1.4.1