summary refs log tree commit diff
diff options
context:
space:
mode:
authorJozef Gajdos <jozef.gajdos@disig.sk>2022-08-01 11:44:45 +0200
committerJozef Gajdos <jozef.gajdos@disig.sk>2022-08-01 11:44:45 +0200
commitacf1daa951d31528b7b741a27a03dae70fccef66 (patch)
treed03bbc5ba6ef894533ef423abaa03119ca73d439
parentMake nextUpdate nullable (diff)
downloadBouncyCastle.NET-ed25519-acf1daa951d31528b7b741a27a03dae70fccef66.tar.xz
Make reason in RevokedStatus (in Org.BouncyCastle.Ocsp) optional.
-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 edbeb57da..f21222b8d 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 DerGeneralizedTime(revocationDate), new CrlReason(reason));
 		}
 
+		public RevokedStatus(
+			DateTime revocationDate)
+		{
+			this.info = new RevokedInfo(new DerGeneralizedTime(revocationDate));
+		}
+
 		public DateTime RevocationTime
 		{
 			get { return info.RevocationTime.ToDateTime(); }