summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-05-26 08:50:01 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-05-26 08:50:01 +0700
commit5828176f009e4c68c65518c32845ae5ef9ed60da (patch)
tree5917594d7930ab06deac7d90b5cb65a22b4ff205
parentNo variable-length padding w/ truncated MAC (unless EtM enabled) (diff)
downloadBouncyCastle.NET-ed25519-5828176f009e4c68c65518c32845ae5ef9ed60da.tar.xz
X.509 certificates in TLS Certificate message allowed to be BER
-rw-r--r--crypto/src/crypto/tls/Certificate.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/tls/Certificate.cs b/crypto/src/crypto/tls/Certificate.cs
index c59616c95..e0479997a 100644
--- a/crypto/src/crypto/tls/Certificate.cs
+++ b/crypto/src/crypto/tls/Certificate.cs
@@ -115,8 +115,8 @@ namespace Org.BouncyCastle.Crypto.Tls
             IList certificate_list = Platform.CreateArrayList();
             while (buf.Position < buf.Length)
             {
-                byte[] derEncoding = TlsUtilities.ReadOpaque24(buf);
-                Asn1Object asn1Cert = TlsUtilities.ReadDerObject(derEncoding);
+                byte[] berEncoding = TlsUtilities.ReadOpaque24(buf);
+                Asn1Object asn1Cert = TlsUtilities.ReadAsn1Object(berEncoding);
                 certificate_list.Add(X509CertificateStructure.GetInstance(asn1Cert));
             }