diff options
-rw-r--r-- | crypto/src/asn1/DERExternal.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/src/asn1/DERExternal.cs b/crypto/src/asn1/DERExternal.cs index 28d5cc46a..b8987d53e 100644 --- a/crypto/src/asn1/DERExternal.cs +++ b/crypto/src/asn1/DERExternal.cs @@ -246,11 +246,9 @@ namespace Org.BouncyCastle.Asn1 switch (tagNo) { case 1: - //return ASN1OctetString.TYPE.checkedCast(externalContent); - return (Asn1OctetString)externalContent; + return Asn1OctetString.Meta.Instance.CheckedCast(externalContent); case 2: - //return ASN1BitString.TYPE.checkedCast(externalContent); - return (DerBitString)externalContent; + return DerBitString.Meta.Instance.CheckedCast(externalContent); default: return externalContent; } |