summary refs log tree commit diff
path: root/crypto/src/asn1/BerOctetString.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/BerOctetString.cs')
-rw-r--r--crypto/src/asn1/BerOctetString.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/BerOctetString.cs b/crypto/src/asn1/BerOctetString.cs
index 2b4de4b2f..3085f3569 100644
--- a/crypto/src/asn1/BerOctetString.cs
+++ b/crypto/src/asn1/BerOctetString.cs
@@ -135,7 +135,7 @@ namespace Org.BouncyCastle.Asn1
                 //
                 foreach (Asn1OctetString oct in this)
                 {
-                    derOut.WriteObject(oct);
+                    oct.Encode(derOut);
                 }
 
 				derOut.WriteByte(0x00);