diff options
Diffstat (limited to 'crypto/src/asn1/DLExternal.cs')
-rw-r--r-- | crypto/src/asn1/DLExternal.cs | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/crypto/src/asn1/DLExternal.cs b/crypto/src/asn1/DLExternal.cs index 912ead579..ac31495cc 100644 --- a/crypto/src/asn1/DLExternal.cs +++ b/crypto/src/asn1/DLExternal.cs @@ -1,25 +1,25 @@ namespace Org.BouncyCastle.Asn1 { - internal class DLExternal + public class DLExternal : DerExternal { - internal DLExternal(Asn1EncodableVector vector) + public DLExternal(Asn1EncodableVector vector) : base(vector) { } - internal DLExternal(Asn1Sequence sequence) + public DLExternal(Asn1Sequence sequence) : base(sequence) { } - internal DLExternal(DerObjectIdentifier directReference, DerInteger indirectReference, + public DLExternal(DerObjectIdentifier directReference, DerInteger indirectReference, Asn1ObjectDescriptor dataValueDescriptor, Asn1TaggedObject externalData) : base(directReference, indirectReference, dataValueDescriptor, externalData) { } - internal DLExternal(DerObjectIdentifier directReference, DerInteger indirectReference, + public DLExternal(DerObjectIdentifier directReference, DerInteger indirectReference, Asn1ObjectDescriptor dataValueDescriptor, int encoding, Asn1Object externalData) : base(directReference, indirectReference, dataValueDescriptor, encoding, externalData) { @@ -33,20 +33,12 @@ return new DLSequence(v); } - internal override IAsn1Encoding GetEncoding(int encoding) - { - if (Asn1OutputStream.EncodingDer == encoding) - return base.GetEncoding(encoding); - - return BuildSequence().GetEncodingImplicit(encoding, Asn1Tags.Universal, Asn1Tags.External); - } - internal override IAsn1Encoding GetEncodingImplicit(int encoding, int tagClass, int tagNo) { if (Asn1OutputStream.EncodingDer == encoding) return base.GetEncodingImplicit(encoding, tagClass, tagNo); - return BuildSequence().GetEncodingImplicit(encoding, tagClass, tagNo); + return BuildSequence().GetEncodingImplicit(Asn1OutputStream.EncodingDL, tagClass, tagNo); } } } |