diff options
Diffstat (limited to 'crypto/src/asn1/x9/OtherInfo.cs')
-rw-r--r-- | crypto/src/asn1/x9/OtherInfo.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/asn1/x9/OtherInfo.cs b/crypto/src/asn1/x9/OtherInfo.cs index c1819a5ee..19bf3f401 100644 --- a/crypto/src/asn1/x9/OtherInfo.cs +++ b/crypto/src/asn1/x9/OtherInfo.cs @@ -32,13 +32,13 @@ namespace Org.BouncyCastle.Asn1.X9 { Asn1TaggedObject o = (Asn1TaggedObject)e.Current; - if (o.TagNo == 0) + if (o.HasContextTag(0)) { - partyAInfo = (Asn1OctetString)o.GetObject(); + partyAInfo = (Asn1OctetString)o.GetExplicitBaseObject(); } - else if ((int) o.TagNo == 2) + else if (o.HasContextTag(2)) { - suppPubInfo = (Asn1OctetString)o.GetObject(); + suppPubInfo = (Asn1OctetString)o.GetExplicitBaseObject(); } } } |