diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-02-08 19:26:46 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-02-08 19:26:46 +0700 |
commit | 50335415dd4d1809782181874e38a275734b76f5 (patch) | |
tree | 36ce4b945cf1326487e168cda480ed7fd3e2d9d9 /crypto/src/asn1/x509/GeneralSubtree.cs | |
parent | Env. var. to enforce correct X.509 cert encoding (diff) | |
download | BouncyCastle.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.cs | 2 |
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)); } |