summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-02-07 14:30:05 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-02-07 14:30:05 +0700
commit0f733e8f938bd104ea6337b3ebe57cd01413502d (patch)
tree3d69ec155338bbdf8252056e9f40229758bb3c3c
parentOverhaul GeneralName (diff)
downloadBouncyCastle.NET-ed25519-0f733e8f938bd104ea6337b3ebe57cd01413502d.tar.xz
Refactor DistributionPointName
-rw-r--r--crypto/src/asn1/x509/DistributionPointName.cs4
1 files 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)