summary refs log tree commit diff
path: root/crypto/src/asn1/ocsp/CertStatus.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/ocsp/CertStatus.cs')
-rw-r--r--crypto/src/asn1/ocsp/CertStatus.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/asn1/ocsp/CertStatus.cs b/crypto/src/asn1/ocsp/CertStatus.cs
index 65f11fc7f..18b7bd21c 100644
--- a/crypto/src/asn1/ocsp/CertStatus.cs
+++ b/crypto/src/asn1/ocsp/CertStatus.cs
@@ -68,6 +68,11 @@ namespace Org.BouncyCastle.Asn1.Ocsp
             throw new ArgumentException("unknown object in factory: " + Platform.GetTypeName(obj), "obj");
         }
 
+        public static CertStatus GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
+        {
+            return Asn1Utilities.GetInstanceFromChoice(taggedObject, declaredExplicit, GetInstance);
+        }
+
         public int TagNo
 		{
 			get { return tagNo; }