summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-11-05 20:02:48 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-11-05 20:02:48 +0700
commit8472fe1bbebbd2244f441d66dfe9b720e2b9c6a7 (patch)
tree248ca0b544e9ccc3dc837a24895265ed334aae0c
parentResolve some FIXMEs (diff)
parentMake reason in RevokedStatus (in Org.BouncyCastle.Ocsp) optional. (diff)
downloadBouncyCastle.NET-ed25519-8472fe1bbebbd2244f441d66dfe9b720e2b9c6a7.tar.xz
Merge branch 'master' of github.com:harrison314/bc-csharp
-rw-r--r--crypto/src/ocsp/RevokedStatus.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/src/ocsp/RevokedStatus.cs b/crypto/src/ocsp/RevokedStatus.cs
index 903e50ef5..659dc99d7 100644
--- a/crypto/src/ocsp/RevokedStatus.cs
+++ b/crypto/src/ocsp/RevokedStatus.cs
@@ -27,6 +27,12 @@ namespace Org.BouncyCastle.Ocsp
 			this.info = new RevokedInfo(new Asn1GeneralizedTime(revocationDate), new CrlReason(reason));
 		}
 
+		public RevokedStatus(
+			DateTime revocationDate)
+		{
+			this.info = new RevokedInfo(new DerGeneralizedTime(revocationDate));
+		}
+
 		public DateTime RevocationTime
 		{
 			get { return info.RevocationTime.ToDateTime(); }