diff options
author | Megan Woods <megan@flygfisk.com> | 2019-01-14 19:28:29 +1100 |
---|---|---|
committer | Megan Woods <megan@flygfisk.com> | 2019-01-14 19:28:29 +1100 |
commit | e62f859d5d77d465efb9bb30f35fe33da61c2409 (patch) | |
tree | 847b510f88f61b2ee82721813157191ea7928df7 /crypto/test/src | |
parent | Updated EJBCA Example (diff) | |
download | BouncyCastle.NET-ed25519-e62f859d5d77d465efb9bb30f35fe33da61c2409.tar.xz |
Removed reference to old test.
Added call to set time in EJBCA example.
Diffstat (limited to 'crypto/test/src')
-rw-r--r-- | crypto/test/src/cms/test/AllTests.cs | 3 | ||||
-rw-r--r-- | 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 |