Skip to content

Commit c2f2046

Browse files
committed
Obsolete/rename property
1 parent d64e59e commit c2f2046

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

crypto/src/asn1/x509/DistributionPointName.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Text;
23

34
namespace Org.BouncyCastle.Asn1.X509
@@ -45,11 +46,14 @@ public DistributionPointName(int type, Asn1Encodable name)
4546
m_name = name;
4647
}
4748

49+
[Obsolete("Use 'Type' instead")]
4850
public int PointType => m_type;
4951

5052
public Asn1Encodable Name => m_name;
5153

52-
public DistributionPointName(Asn1TaggedObject obj)
54+
public int Type => m_type;
55+
56+
public DistributionPointName(Asn1TaggedObject obj)
5357
{
5458
m_type = obj.TagNo;
5559

crypto/src/pkix/PkixCertPathValidatorUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ internal static void AddAdditionalStoresFromCrlDistributionPoint(
932932
// look for URIs in fullName
933933
if (dpn != null)
934934
{
935-
if (dpn.PointType == DistributionPointName.FullName)
935+
if (dpn.Type == DistributionPointName.FullName)
936936
{
937937
GeneralName[] genNames = GeneralNames.GetInstance(
938938
dpn.Name).GetNames();

crypto/src/pkix/Rfc3280CertPathUtilities.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ internal static void ProcessCrlB2(DistributionPoint dp, object cert, X509Crl crl
7878
DistributionPointName dpName = IssuingDistributionPoint.GetInstance(idp).DistributionPoint;
7979
var names = new List<GeneralName>();
8080

81-
if (dpName.PointType == DistributionPointName.FullName)
81+
if (dpName.Type == DistributionPointName.FullName)
8282
{
8383
GeneralName[] genNames = GeneralNames.GetInstance(dpName.Name).GetNames();
8484
for (int j = 0; j < genNames.Length; j++)
8585
{
8686
names.Add(genNames[j]);
8787
}
8888
}
89-
if (dpName.PointType == DistributionPointName.NameRelativeToCrlIssuer)
89+
if (dpName.Type == DistributionPointName.NameRelativeToCrlIssuer)
9090
{
9191
var seq = Asn1Sequence.GetInstance(crl.IssuerDN.ToAsn1Object());
9292

@@ -106,11 +106,11 @@ internal static void ProcessCrlB2(DistributionPoint dp, object cert, X509Crl crl
106106
{
107107
dpName = dp.DistributionPointName;
108108
GeneralName[] genNames = null;
109-
if (dpName.PointType == DistributionPointName.FullName)
109+
if (dpName.Type == DistributionPointName.FullName)
110110
{
111111
genNames = GeneralNames.GetInstance(dpName.Name).GetNames();
112112
}
113-
if (dpName.PointType == DistributionPointName.NameRelativeToCrlIssuer)
113+
if (dpName.Type == DistributionPointName.NameRelativeToCrlIssuer)
114114
{
115115
if (dp.CrlIssuer != null)
116116
{

0 commit comments

Comments
 (0)