summary refs log tree commit diff
path: root/crypto/src/asn1/x509/Target.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-06-25 21:18:38 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-06-25 21:18:38 +0700
commit499bafdd45b0f8c14f74023b38b29fc3ebb5611d (patch)
tree87153088006b67c2ef36d743c361d1bf22da3675 /crypto/src/asn1/x509/Target.cs
parentRSA: Use input range check from fips (diff)
downloadBouncyCastle.NET-ed25519-499bafdd45b0f8c14f74023b38b29fc3ebb5611d.tar.xz
Refactoring in Asn1.IsisMtt
Diffstat (limited to 'crypto/src/asn1/x509/Target.cs')
-rw-r--r--crypto/src/asn1/x509/Target.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/asn1/x509/Target.cs b/crypto/src/asn1/x509/Target.cs
index eff740143..da3ccccae 100644
--- a/crypto/src/asn1/x509/Target.cs
+++ b/crypto/src/asn1/x509/Target.cs
@@ -62,12 +62,12 @@ namespace Org.BouncyCastle.Asn1.X509
         private Target(
 			Asn1TaggedObject tagObj)
 		{
-			switch ((Choice) tagObj.TagNo)
+			switch (tagObj.TagNo)
 			{
-				case Choice.Name:	// GeneralName is already a choice so explicit
+				case (int)Choice.Name:	// GeneralName is already a choice so explicit
 					targetName = GeneralName.GetInstance(tagObj, true);
 					break;
-				case Choice.Group:
+				case (int)Choice.Group:
 					targetGroup = GeneralName.GetInstance(tagObj, true);
 					break;
 				default: