summary refs log tree commit diff
path: root/crypto/src/asn1/DerSequence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/DerSequence.cs')
-rw-r--r--crypto/src/asn1/DerSequence.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/DerSequence.cs b/crypto/src/asn1/DerSequence.cs
index 7940f6b5a..9d5951418 100644
--- a/crypto/src/asn1/DerSequence.cs
+++ b/crypto/src/asn1/DerSequence.cs
@@ -67,7 +67,7 @@ namespace Org.BouncyCastle.Asn1
 
             foreach (Asn1Encodable obj in this)
             {
-                dOut.WriteObject(obj);
+                obj.ToAsn1Object().Encode(dOut);
             }
 
             dOut.Flush();