diff options
Diffstat (limited to 'crypto/src/asn1/cmp/CrlSource.cs')
-rw-r--r-- | crypto/src/asn1/cmp/CrlSource.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/cmp/CrlSource.cs b/crypto/src/asn1/cmp/CrlSource.cs index 4b6b396d9..394064788 100644 --- a/crypto/src/asn1/cmp/CrlSource.cs +++ b/crypto/src/asn1/cmp/CrlSource.cs @@ -26,10 +26,11 @@ namespace Org.BouncyCastle.Asn1.Cmp return new CrlSource(Asn1TaggedObject.GetInstance(obj)); } - public static CrlSource GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) - { - return Asn1Utilities.GetInstanceFromChoice(taggedObject, declaredExplicit, GetInstance); - } + public static CrlSource GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetInstanceChoice(taggedObject, declaredExplicit, GetInstance); + + public static CrlSource GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance); private readonly DistributionPointName m_dpn; private readonly GeneralNames m_issuer; |