summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2016-10-28 22:01:55 +0200
committerPeter Dettman <peter.dettman@bouncycastle.org>2016-10-28 22:01:55 +0200
commit7f2f1a730caa23a811ed710d67feb8f6b2ebb9a5 (patch)
treea5714b742d552e494daee4355dce085487a5b2ef /crypto/src
parentAvoid locale-dependent date-time string comparison in test (diff)
downloadBouncyCastle.NET-ed25519-7f2f1a730caa23a811ed710d67feb8f6b2ebb9a5.tar.xz
Throw excepton on unknown tag
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/asn1/ocsp/CertStatus.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/asn1/ocsp/CertStatus.cs b/crypto/src/asn1/ocsp/CertStatus.cs
index b524364c9..7dd99b844 100644
--- a/crypto/src/asn1/ocsp/CertStatus.cs
+++ b/crypto/src/asn1/ocsp/CertStatus.cs
@@ -48,6 +48,8 @@ namespace Org.BouncyCastle.Asn1.Ocsp
 				case 2:
 					value = DerNull.Instance;
 					break;
+				default:
+					throw new ArgumentException("Unknown tag encountered: " + choice.TagNo);
             }
         }