From 48e949f985e42e5b841e05e9b84a969d63520c1e Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 25 Jul 2023 16:43:34 +0700 Subject: Mark BER parser classes Obsolete (for removal from public API) --- crypto/src/asn1/ASN1StreamParser.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto/src/asn1/ASN1StreamParser.cs') diff --git a/crypto/src/asn1/ASN1StreamParser.cs b/crypto/src/asn1/ASN1StreamParser.cs index 78e34d870..d1e380481 100644 --- a/crypto/src/asn1/ASN1StreamParser.cs +++ b/crypto/src/asn1/ASN1StreamParser.cs @@ -124,9 +124,11 @@ namespace Org.BouncyCastle.Asn1 case Asn1Tags.External: // TODO[asn1] DLExternalParser return new DerExternalParser(this); +#pragma warning disable CS0618 // Type or member is obsolete case Asn1Tags.OctetString: // TODO[asn1] DLConstructedOctetStringParser return new BerOctetStringParser(this); +#pragma warning restore CS0618 // Type or member is obsolete case Asn1Tags.Set: // TODO[asn1] DLSetParser return new DerSetParser(this); @@ -147,12 +149,14 @@ namespace Org.BouncyCastle.Asn1 case Asn1Tags.External: // TODO[asn1] BERExternalParser return new DerExternalParser(this); +#pragma warning disable CS0618 // Type or member is obsolete case Asn1Tags.OctetString: return new BerOctetStringParser(this); case Asn1Tags.Sequence: return new BerSequenceParser(this); case Asn1Tags.Set: return new BerSetParser(this); +#pragma warning restore CS0618 // Type or member is obsolete default: throw new Asn1Exception("unknown BER object encountered: 0x" + univTagNo.ToString("X")); } -- cgit 1.4.1