summary refs log tree commit diff
path: root/crypto/src/asn1/x509
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-05-05 19:00:34 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-05-05 19:00:34 +0700
commiteec1e384fc311c22550cc4654fcf8272d65e2978 (patch)
treed08b71b94008b1065b8612d9c20af860fa61c92a /crypto/src/asn1/x509
parentRefactoring around BasicConstraints (diff)
downloadBouncyCastle.NET-ed25519-eec1e384fc311c22550cc4654fcf8272d65e2978.tar.xz
Improvements to pathLenConstraints checks
Diffstat (limited to 'crypto/src/asn1/x509')
-rw-r--r--crypto/src/asn1/x509/BasicConstraints.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/src/asn1/x509/BasicConstraints.cs b/crypto/src/asn1/x509/BasicConstraints.cs
index 92e0e3dae..67f7f6618 100644
--- a/crypto/src/asn1/x509/BasicConstraints.cs
+++ b/crypto/src/asn1/x509/BasicConstraints.cs
@@ -82,11 +82,9 @@ namespace Org.BouncyCastle.Asn1.X509
             return cA != null && cA.IsTrue;
         }
 
-        // TODO[api] Return DerInteger
         public BigInteger PathLenConstraint => pathLenConstraint?.Value;
 
-        internal int PathLenConstraint_Int32 =>
-            pathLenConstraint == null ? int.MaxValue : pathLenConstraint.IntValueExact;
+        public DerInteger PathLenConstraintInteger => pathLenConstraint;
 
 		/**
          * Produce an object suitable for an Asn1OutputStream.