diff options
Diffstat (limited to 'crypto/src/ocsp/RevokedStatus.cs')
-rw-r--r-- | crypto/src/ocsp/RevokedStatus.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/src/ocsp/RevokedStatus.cs b/crypto/src/ocsp/RevokedStatus.cs index a37bdade9..14df6b2ea 100644 --- a/crypto/src/ocsp/RevokedStatus.cs +++ b/crypto/src/ocsp/RevokedStatus.cs @@ -19,12 +19,16 @@ namespace Org.BouncyCastle.Ocsp public RevokedStatus(DateTime revocationDate) { - m_revokedInfo = new RevokedInfo(new Asn1GeneralizedTime(revocationDate)); + var revocationTime = Rfc5280Asn1Utilities.CreateGeneralizedTime(revocationDate); + + m_revokedInfo = new RevokedInfo(revocationTime); } public RevokedStatus(DateTime revocationDate, int reason) { - m_revokedInfo = new RevokedInfo(new Asn1GeneralizedTime(revocationDate), new CrlReason(reason)); + var revocationTime = Rfc5280Asn1Utilities.CreateGeneralizedTime(revocationDate); + + m_revokedInfo = new RevokedInfo(revocationTime, new CrlReason(reason)); } public DateTime RevocationTime |