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/X509Certificate.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/X509Certificate.cs')
-rw-r--r-- | crypto/src/x509/X509Certificate.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/src/x509/X509Certificate.cs b/crypto/src/x509/X509Certificate.cs index 4f4f1e991..985ec0aeb 100644 --- a/crypto/src/x509/X509Certificate.cs +++ b/crypto/src/x509/X509Certificate.cs @@ -73,8 +73,12 @@ namespace Org.BouncyCastle.X509 { } - public X509Certificate( - X509CertificateStructure c) + public X509Certificate(byte[] certData) + : this(X509CertificateStructure.GetInstance(certData)) + { + } + + public X509Certificate(X509CertificateStructure c) { this.c = c; |