From acf1daa951d31528b7b741a27a03dae70fccef66 Mon Sep 17 00:00:00 2001 From: Jozef Gajdos Date: Mon, 1 Aug 2022 11:44:45 +0200 Subject: Make reason in RevokedStatus (in Org.BouncyCastle.Ocsp) optional. --- crypto/src/ocsp/RevokedStatus.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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(); } -- cgit 1.4.1