diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-21 18:02:12 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-21 18:02:12 +0700 |
commit | 4465dd325cfec9c80fec084399f80070557ecbc0 (patch) | |
tree | 9d66da98adac9a740e2ce99b926d3f99fc02678a /crypto/src/asn1/DerVisibleString.cs | |
parent | ASN.1: GetTagged method for all universal types (diff) | |
download | BouncyCastle.NET-ed25519-4465dd325cfec9c80fec084399f80070557ecbc0.tar.xz |
ASN.1: GetOptional for universal types should not convert
Diffstat (limited to '')
-rw-r--r-- | crypto/src/asn1/DerVisibleString.cs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crypto/src/asn1/DerVisibleString.cs b/crypto/src/asn1/DerVisibleString.cs index c0e296cef..0c4959b49 100644 --- a/crypto/src/asn1/DerVisibleString.cs +++ b/crypto/src/asn1/DerVisibleString.cs @@ -76,12 +76,6 @@ namespace Org.BouncyCastle.Asn1 if (element is DerVisibleString existing) return existing; - if (element is IAsn1Convertible asn1Convertible && !(element is Asn1Object) && - asn1Convertible.ToAsn1Object() is DerVisibleString converted) - { - return converted; - } - return null; } |