diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-08 11:31:21 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-08 11:31:21 +0700 |
commit | 0784b900d79a7792348dc1bababa0e653e0db156 (patch) | |
tree | 2dbe6d11783737828931c0bd247c0135cf64482b /crypto/src/asn1 | |
parent | Utility methods and guards (diff) | |
download | BouncyCastle.NET-ed25519-0784b900d79a7792348dc1bababa0e653e0db156.tar.xz |
Change return type of GetExplicitBaseObject
Diffstat (limited to 'crypto/src/asn1')
-rw-r--r-- | crypto/src/asn1/Asn1TaggedObject.cs | 4 | ||||
-rw-r--r-- | crypto/src/asn1/DERExternal.cs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/asn1/Asn1TaggedObject.cs b/crypto/src/asn1/Asn1TaggedObject.cs index 5eb0441ed..b45c0f2d0 100644 --- a/crypto/src/asn1/Asn1TaggedObject.cs +++ b/crypto/src/asn1/Asn1TaggedObject.cs @@ -151,12 +151,12 @@ namespace Org.BouncyCastle.Asn1 * {@link #getBaseUniversal(boolean, int)} where possible. Before using, check * for matching tag {@link #getTagClass() class} and {@link #getTagNo() number}. */ - public Asn1Object GetExplicitBaseObject() + public Asn1Encodable GetExplicitBaseObject() { if (!IsExplicit()) throw new InvalidOperationException("object implicit - explicit expected."); - return obj.ToAsn1Object(); + return obj; } /** diff --git a/crypto/src/asn1/DERExternal.cs b/crypto/src/asn1/DERExternal.cs index edd517849..d6255bb93 100644 --- a/crypto/src/asn1/DERExternal.cs +++ b/crypto/src/asn1/DERExternal.cs @@ -267,7 +267,7 @@ namespace Org.BouncyCastle.Asn1 switch (tagNo) { case 0: - return encoding.GetExplicitBaseObject(); + return encoding.GetExplicitBaseObject().ToAsn1Object(); case 1: return Asn1OctetString.GetInstance(encoding, false); case 2: |