diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-27 01:58:23 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-27 01:58:23 +0700 |
commit | e71fe27c302d36e6355d9da12f3d9ec51540825a (patch) | |
tree | 6aa065f627d14e659e68ae0cbe355b656af3e40f /crypto/src/asn1/isismtt/x509/Admissions.cs | |
parent | Add CrlID.GetInstance methods, obsolete public constructor (diff) | |
download | BouncyCastle.NET-ed25519-e71fe27c302d36e6355d9da12f3d9ec51540825a.tar.xz |
Misc. cleanup after bc-fips-csharp updates
Diffstat (limited to 'crypto/src/asn1/isismtt/x509/Admissions.cs')
-rw-r--r-- | crypto/src/asn1/isismtt/x509/Admissions.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/src/asn1/isismtt/x509/Admissions.cs b/crypto/src/asn1/isismtt/x509/Admissions.cs index 42ebceb1c..1ade6093f 100644 --- a/crypto/src/asn1/isismtt/x509/Admissions.cs +++ b/crypto/src/asn1/isismtt/x509/Admissions.cs @@ -70,13 +70,13 @@ namespace Org.BouncyCastle.Asn1.IsisMtt.X509 switch (tagged1.TagNo) { case 0: - admissionAuthority = GeneralName.GetInstance((Asn1TaggedObject)o, true); + admissionAuthority = GeneralName.GetInstance(tagged1, true); break; case 1: - namingAuthority = NamingAuthority.GetInstance((Asn1TaggedObject)o, true); + namingAuthority = NamingAuthority.GetInstance(tagged1, true); break; default: - throw new ArgumentException("Bad tag number: " + ((Asn1TaggedObject)o).TagNo); + throw new ArgumentException("Bad tag number: " + tagged1.TagNo); } e.MoveNext(); o = e.Current; @@ -86,10 +86,10 @@ namespace Org.BouncyCastle.Asn1.IsisMtt.X509 switch (tagged2.TagNo) { case 1: - namingAuthority = NamingAuthority.GetInstance((Asn1TaggedObject)o, true); + namingAuthority = NamingAuthority.GetInstance(tagged2, true); break; default: - throw new ArgumentException("Bad tag number: " + ((Asn1TaggedObject)o).TagNo); + throw new ArgumentException("Bad tag number: " + tagged2.TagNo); } e.MoveNext(); o = e.Current; |