diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-05 20:02:48 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-05 20:02:48 +0700 |
commit | 8472fe1bbebbd2244f441d66dfe9b720e2b9c6a7 (patch) | |
tree | 248ca0b544e9ccc3dc837a24895265ed334aae0c | |
parent | Resolve some FIXMEs (diff) | |
parent | Make reason in RevokedStatus (in Org.BouncyCastle.Ocsp) optional. (diff) | |
download | BouncyCastle.NET-ed25519-8472fe1bbebbd2244f441d66dfe9b720e2b9c6a7.tar.xz |
Merge branch 'master' of github.com:harrison314/bc-csharp
-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 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(); } |