diff options
Diffstat (limited to 'crypto/src/asn1/BerOctetString.cs')
-rw-r--r-- | crypto/src/asn1/BerOctetString.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/BerOctetString.cs b/crypto/src/asn1/BerOctetString.cs index 3085f3569..1478488a6 100644 --- a/crypto/src/asn1/BerOctetString.cs +++ b/crypto/src/asn1/BerOctetString.cs @@ -124,7 +124,7 @@ namespace Org.BouncyCastle.Asn1 internal override void Encode( DerOutputStream derOut) { - if (derOut is Asn1OutputStream || derOut is BerOutputStream) + if (derOut.IsBer) { derOut.WriteByte(Asn1Tags.Constructed | Asn1Tags.OctetString); |