summary refs log tree commit diff
path: root/crypto/src/x509/X509Certificate.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-08-07 20:35:20 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-08-07 20:35:20 +0700
commit94a215651b23921043cb3d7d41550ea49dd7a79c (patch)
tree5b498f9b9462f029e9c7616fde43293d1170e93e /crypto/src/x509/X509Certificate.cs
parentFix Encode return values (diff)
downloadBouncyCastle.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.cs8
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;