diff options
Diffstat (limited to 'crypto/src/asn1/ocsp/CertStatus.cs')
-rw-r--r-- | crypto/src/asn1/ocsp/CertStatus.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/ocsp/CertStatus.cs b/crypto/src/asn1/ocsp/CertStatus.cs index 7ce44ea3f..c67fdb5f6 100644 --- a/crypto/src/asn1/ocsp/CertStatus.cs +++ b/crypto/src/asn1/ocsp/CertStatus.cs @@ -14,10 +14,11 @@ namespace Org.BouncyCastle.Asn1.Ocsp return new CertStatus(Asn1TaggedObject.GetInstance(obj)); } - public static CertStatus GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) - { - return Asn1Utilities.GetInstanceFromChoice(taggedObject, declaredExplicit, GetInstance); - } + public static CertStatus GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetInstanceChoice(taggedObject, declaredExplicit, GetInstance); + + public static CertStatus GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance); private static Asn1Encodable GetValue(Asn1TaggedObject choice) { |