summary refs log tree commit diff
path: root/crypto/src/asn1/x509/GeneralSubtree.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-02-08 19:26:46 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-02-08 19:26:46 +0700
commit50335415dd4d1809782181874e38a275734b76f5 (patch)
tree36ce4b945cf1326487e168cda480ed7fd3e2d9d9 /crypto/src/asn1/x509/GeneralSubtree.cs
parentEnv. var. to enforce correct X.509 cert encoding (diff)
downloadBouncyCastle.NET-ed25519-50335415dd4d1809782181874e38a275734b76f5.tar.xz
New HasValue methods
Diffstat (limited to 'crypto/src/asn1/x509/GeneralSubtree.cs')
-rw-r--r--crypto/src/asn1/x509/GeneralSubtree.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/x509/GeneralSubtree.cs b/crypto/src/asn1/x509/GeneralSubtree.cs
index a42ec4643..7dbacd229 100644
--- a/crypto/src/asn1/x509/GeneralSubtree.cs
+++ b/crypto/src/asn1/x509/GeneralSubtree.cs
@@ -173,7 +173,7 @@ namespace Org.BouncyCastle.Asn1.X509
 		{
 			Asn1EncodableVector v = new Asn1EncodableVector(baseName);
 
-			if (minimum != null && minimum.Value.SignValue != 0)
+			if (minimum != null && !minimum.HasValue(0))
 			{
 				v.Add(new DerTaggedObject(false, 0, minimum));
 			}