summary refs log tree commit diff
path: root/crypto/src/asn1/ocsp/RevokedInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/ocsp/RevokedInfo.cs')
-rw-r--r--crypto/src/asn1/ocsp/RevokedInfo.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/ocsp/RevokedInfo.cs b/crypto/src/asn1/ocsp/RevokedInfo.cs
index d2395e186..83b03b0eb 100644
--- a/crypto/src/asn1/ocsp/RevokedInfo.cs
+++ b/crypto/src/asn1/ocsp/RevokedInfo.cs
@@ -46,7 +46,7 @@ namespace Org.BouncyCastle.Asn1.Ocsp
             m_revocationTime = Asn1GeneralizedTime.GetInstance(seq[pos++]);
 
             m_revocationReason = Asn1Utilities.ReadOptionalContextTagged(seq, ref pos, 0, true,
-                (t, e) => new CrlReason(DerEnumerated.GetInstance(t, e)));
+                (t, e) => new CrlReason(DerEnumerated.GetTagged(t, e)));
 
             if (pos != count)
                 throw new ArgumentException("Unexpected elements in sequence", nameof(seq));