From 0f733e8f938bd104ea6337b3ebe57cd01413502d Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 7 Feb 2023 14:30:05 +0700 Subject: Refactor DistributionPointName --- crypto/src/asn1/x509/DistributionPointName.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/src/asn1/x509/DistributionPointName.cs b/crypto/src/asn1/x509/DistributionPointName.cs index bdb7219be..6b12d5b9a 100644 --- a/crypto/src/asn1/x509/DistributionPointName.cs +++ b/crypto/src/asn1/x509/DistributionPointName.cs @@ -28,11 +28,11 @@ namespace Org.BouncyCastle.Asn1.X509 public static DistributionPointName GetInstance(Asn1TaggedObject obj, bool explicitly) { - return GetInstance(Asn1TaggedObject.GetInstance(obj, true)); + return Asn1Utilities.GetInstanceFromChoice(obj, explicitly, GetInstance); } - private readonly Asn1Encodable m_name; private readonly int m_type; + private readonly Asn1Encodable m_name; public DistributionPointName(GeneralNames name) : this(FullName, name) -- cgit 1.4.1