diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-09-14 14:23:01 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-09-14 14:23:01 +0700 |
commit | 3124e402477d36636fad5ac3036ef56088cecf65 (patch) | |
tree | ae4c5b178e87d8fabd4feff0609448abb3d5dc3a /crypto/src/ocsp | |
parent | added Dilithium ack (diff) | |
download | BouncyCastle.NET-ed25519-3124e402477d36636fad5ac3036ef56088cecf65.tar.xz |
DateTimeObject => nullable DateTime
Diffstat (limited to 'crypto/src/ocsp')
-rw-r--r-- | crypto/src/ocsp/SingleResp.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/crypto/src/ocsp/SingleResp.cs b/crypto/src/ocsp/SingleResp.cs index 66b2ce4b1..28e40e047 100644 --- a/crypto/src/ocsp/SingleResp.cs +++ b/crypto/src/ocsp/SingleResp.cs @@ -2,7 +2,6 @@ using System; using Org.BouncyCastle.Asn1.Ocsp; using Org.BouncyCastle.Asn1.X509; -using Org.BouncyCastle.Utilities.Date; using Org.BouncyCastle.X509; namespace Org.BouncyCastle.Ocsp @@ -56,15 +55,7 @@ namespace Org.BouncyCastle.Ocsp * * @return nextUpdate, or null if not present. */ - public DateTimeObject NextUpdate - { - get - { - return resp.NextUpdate == null - ? null - : new DateTimeObject(resp.NextUpdate.ToDateTime()); - } - } + public DateTime? NextUpdate => resp.NextUpdate?.ToDateTime(); public X509Extensions SingleExtensions { |