diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-08-07 20:35:20 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-08-07 20:35:20 +0700 |
commit | 94a215651b23921043cb3d7d41550ea49dd7a79c (patch) | |
tree | 5b498f9b9462f029e9c7616fde43293d1170e93e /crypto/src/x509/X509Crl.cs | |
parent | Fix Encode return values (diff) | |
download | BouncyCastle.NET-ed25519-94a215651b23921043cb3d7d41550ea49dd7a79c.tar.xz |
Cleanup after bc-fips-csharp updates
Diffstat (limited to 'crypto/src/x509/X509Crl.cs')
-rw-r--r-- | crypto/src/x509/X509Crl.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/crypto/src/x509/X509Crl.cs b/crypto/src/x509/X509Crl.cs index a5aabf974..9acebf2dd 100644 --- a/crypto/src/x509/X509Crl.cs +++ b/crypto/src/x509/X509Crl.cs @@ -71,8 +71,12 @@ namespace Org.BouncyCastle.X509 private volatile bool hashValueSet; private volatile int hashValue; - public X509Crl( - CertificateList c) + public X509Crl(byte[] encoding) + : this(CertificateList.GetInstance(encoding)) + { + } + + public X509Crl(CertificateList c) { this.c = c; @@ -91,7 +95,12 @@ namespace Org.BouncyCastle.X509 } } - protected override X509Extensions GetX509Extensions() + public virtual CertificateList CertificateList + { + get { return c; } + } + + protected override X509Extensions GetX509Extensions() { return c.Version >= 2 ? c.TbsCertList.Extensions |