diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-18 13:01:33 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-10-18 13:01:33 +0700 |
commit | 1df5b7dd9235428140ae8725e0004072b13e8f99 (patch) | |
tree | da862026de55a008520a3e3c69dbda545f8a140a /crypto/src | |
parent | Followups for the SicBlockCipher changes (diff) | |
download | BouncyCastle.NET-ed25519-1df5b7dd9235428140ae8725e0004072b13e8f99.tar.xz |
http://www.bouncycastle.org/jira/browse/BMA-128
- Cater for future X.509 versions
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/x509/X509Certificate.cs | 2 | ||||
-rw-r--r-- | crypto/src/x509/X509Crl.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/x509/X509Certificate.cs b/crypto/src/x509/X509Certificate.cs index 4487232f0..c323fc8f1 100644 --- a/crypto/src/x509/X509Certificate.cs +++ b/crypto/src/x509/X509Certificate.cs @@ -376,7 +376,7 @@ namespace Org.BouncyCastle.X509 protected override X509Extensions GetX509Extensions() { - return c.Version == 3 + return c.Version >= 3 ? c.TbsCertificate.Extensions : null; } diff --git a/crypto/src/x509/X509Crl.cs b/crypto/src/x509/X509Crl.cs index 1746960fb..0679cb240 100644 --- a/crypto/src/x509/X509Crl.cs +++ b/crypto/src/x509/X509Crl.cs @@ -64,7 +64,7 @@ namespace Org.BouncyCastle.X509 protected override X509Extensions GetX509Extensions() { - return Version == 2 + return c.Version >= 2 ? c.TbsCertList.Extensions : null; } |