summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-09 16:15:59 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-09 16:15:59 +0700
commit22bf454265574f90e9fd883503e3a05d0592320f (patch)
tree6a1d3cc9eeb978c37b9fd770f61d8924da7f944a /crypto/src
parentRefactoring (diff)
downloadBouncyCastle.NET-ed25519-22bf454265574f90e9fd883503e3a05d0592320f.tar.xz
Fix deprecated call
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/asn1/Asn1InputStream.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/Asn1InputStream.cs b/crypto/src/asn1/Asn1InputStream.cs
index b38598a62..14073e921 100644
--- a/crypto/src/asn1/Asn1InputStream.cs
+++ b/crypto/src/asn1/Asn1InputStream.cs
@@ -113,7 +113,7 @@ namespace Org.BouncyCastle.Asn1
             case Asn1Tags.Set:
                 return CreateDLSet(defIn);
             case Asn1Tags.External:
-                return new DerExternal(ReadVector(defIn));                
+                return DerSequence.FromVector(ReadVector(defIn)).ToAsn1External();
             default:
                 throw new IOException("unknown tag " + tagNo + " encountered");
             }