From 4465dd325cfec9c80fec084399f80070557ecbc0 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 21 Jun 2024 18:02:12 +0700 Subject: ASN.1: GetOptional for universal types should not convert --- crypto/src/asn1/DerVideotexString.cs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'crypto/src/asn1/DerVideotexString.cs') diff --git a/crypto/src/asn1/DerVideotexString.cs b/crypto/src/asn1/DerVideotexString.cs index 5ace0cb17..9d136b7b9 100644 --- a/crypto/src/asn1/DerVideotexString.cs +++ b/crypto/src/asn1/DerVideotexString.cs @@ -76,12 +76,6 @@ namespace Org.BouncyCastle.Asn1 if (element is DerVideotexString existing) return existing; - if (element is IAsn1Convertible asn1Convertible && !(element is Asn1Object) && - asn1Convertible.ToAsn1Object() is DerVideotexString converted) - { - return converted; - } - return null; } -- cgit 1.4.1