summary refs log tree commit diff
diff options
context:
space:
mode:
-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(); }