diff options
author | Jozef Gajdos <jozef.gajdos@disig.sk> | 2022-08-01 11:44:45 +0200 |
---|---|---|
committer | Jozef Gajdos <jozef.gajdos@disig.sk> | 2022-08-01 11:44:45 +0200 |
commit | acf1daa951d31528b7b741a27a03dae70fccef66 (patch) | |
tree | d03bbc5ba6ef894533ef423abaa03119ca73d439 | |
parent | Make nextUpdate nullable (diff) | |
download | BouncyCastle.NET-ed25519-acf1daa951d31528b7b741a27a03dae70fccef66.tar.xz |
Make reason in RevokedStatus (in Org.BouncyCastle.Ocsp) optional.
-rw-r--r-- | crypto/src/ocsp/RevokedStatus.cs | 6 |
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(); } |