summary refs log tree commit diff
path: root/crypto/src/pkix/Rfc3280CertPathUtilities.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-15 19:16:58 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-15 19:16:58 +0700
commitd80d39b6bb395671b89e40c7af8a836337dd2636 (patch)
tree301b8d0fd4763086af5b2450da5c2aaca37d24da /crypto/src/pkix/Rfc3280CertPathUtilities.cs
parentCode cleanup (diff)
downloadBouncyCastle.NET-ed25519-d80d39b6bb395671b89e40c7af8a836337dd2636.tar.xz
Refactor NameConstraints
Diffstat (limited to '')
-rw-r--r--crypto/src/pkix/Rfc3280CertPathUtilities.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/pkix/Rfc3280CertPathUtilities.cs b/crypto/src/pkix/Rfc3280CertPathUtilities.cs
index 1d912264e..1a2346d9e 100644
--- a/crypto/src/pkix/Rfc3280CertPathUtilities.cs
+++ b/crypto/src/pkix/Rfc3280CertPathUtilities.cs
@@ -1619,7 +1619,7 @@ namespace Org.BouncyCastle.Pkix
 					PkixCertPathValidatorUtilities.GetExtensionValue(cert, X509Extensions.NameConstraints));
 				if (ncSeq != null)
 				{
-					nc = new NameConstraints(ncSeq);
+					nc = NameConstraints.GetInstance(ncSeq);
 				}
 			}
 			catch (Exception e)