summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-02-07 14:42:21 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-02-07 14:42:21 +0700
commitc2f2046b6fa20030916f113c48aad8a9db00343b (patch)
tree09243399fc7cc92435b91bcd7e011dc6656913b1
parentRefactor PopoPrivKey (diff)
downloadBouncyCastle.NET-ed25519-c2f2046b6fa20030916f113c48aad8a9db00343b.tar.xz
Obsolete/rename property
-rw-r--r--crypto/src/asn1/x509/DistributionPointName.cs6
-rw-r--r--crypto/src/pkix/PkixCertPathValidatorUtilities.cs2
-rw-r--r--crypto/src/pkix/Rfc3280CertPathUtilities.cs8
3 files changed, 10 insertions, 6 deletions
diff --git a/crypto/src/asn1/x509/DistributionPointName.cs b/crypto/src/asn1/x509/DistributionPointName.cs
index 6b12d5b9a..1c0455413 100644
--- a/crypto/src/asn1/x509/DistributionPointName.cs
+++ b/crypto/src/asn1/x509/DistributionPointName.cs
@@ -1,3 +1,4 @@
+using System;
 using System.Text;
 
 namespace Org.BouncyCastle.Asn1.X509
@@ -45,11 +46,14 @@ namespace Org.BouncyCastle.Asn1.X509
             m_name = name;
         }
 
+        [Obsolete("Use 'Type' instead")]
 		public int PointType => m_type;
 
 		public Asn1Encodable Name => m_name;
 
-		public DistributionPointName(Asn1TaggedObject obj)
+        public int Type => m_type;
+
+        public DistributionPointName(Asn1TaggedObject obj)
         {
             m_type = obj.TagNo;
 
diff --git a/crypto/src/pkix/PkixCertPathValidatorUtilities.cs b/crypto/src/pkix/PkixCertPathValidatorUtilities.cs
index efbf855ff..23c5e4205 100644
--- a/crypto/src/pkix/PkixCertPathValidatorUtilities.cs
+++ b/crypto/src/pkix/PkixCertPathValidatorUtilities.cs
@@ -932,7 +932,7 @@ namespace Org.BouncyCastle.Pkix
 					// look for URIs in fullName
 					if (dpn != null)
 					{
-						if (dpn.PointType == DistributionPointName.FullName)
+						if (dpn.Type == DistributionPointName.FullName)
 						{
 							GeneralName[] genNames = GeneralNames.GetInstance(
 								dpn.Name).GetNames();
diff --git a/crypto/src/pkix/Rfc3280CertPathUtilities.cs b/crypto/src/pkix/Rfc3280CertPathUtilities.cs
index f1a85eb09..5a13ccd1d 100644
--- a/crypto/src/pkix/Rfc3280CertPathUtilities.cs
+++ b/crypto/src/pkix/Rfc3280CertPathUtilities.cs
@@ -78,7 +78,7 @@ namespace Org.BouncyCastle.Pkix
 					DistributionPointName dpName = IssuingDistributionPoint.GetInstance(idp).DistributionPoint;
 					var names = new List<GeneralName>();
 
-					if (dpName.PointType == DistributionPointName.FullName)
+					if (dpName.Type == DistributionPointName.FullName)
 					{
 						GeneralName[] genNames = GeneralNames.GetInstance(dpName.Name).GetNames();
 						for (int j = 0; j < genNames.Length; j++)
@@ -86,7 +86,7 @@ namespace Org.BouncyCastle.Pkix
 							names.Add(genNames[j]);
 						}
 					}
-					if (dpName.PointType == DistributionPointName.NameRelativeToCrlIssuer)
+					if (dpName.Type == DistributionPointName.NameRelativeToCrlIssuer)
 					{
 						var seq = Asn1Sequence.GetInstance(crl.IssuerDN.ToAsn1Object());
 
@@ -106,11 +106,11 @@ namespace Org.BouncyCastle.Pkix
 					{
 						dpName = dp.DistributionPointName;
 						GeneralName[] genNames = null;
-						if (dpName.PointType == DistributionPointName.FullName)
+						if (dpName.Type == DistributionPointName.FullName)
 						{
 							genNames = GeneralNames.GetInstance(dpName.Name).GetNames();
 						}
-						if (dpName.PointType == DistributionPointName.NameRelativeToCrlIssuer)
+						if (dpName.Type == DistributionPointName.NameRelativeToCrlIssuer)
 						{
 							if (dp.CrlIssuer != null)
 							{