diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2016-10-28 22:01:55 +0200 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2016-10-28 22:01:55 +0200 |
commit | 7f2f1a730caa23a811ed710d67feb8f6b2ebb9a5 (patch) | |
tree | a5714b742d552e494daee4355dce085487a5b2ef /crypto/src/asn1/ocsp | |
parent | Avoid locale-dependent date-time string comparison in test (diff) | |
download | BouncyCastle.NET-ed25519-7f2f1a730caa23a811ed710d67feb8f6b2ebb9a5.tar.xz |
Throw excepton on unknown tag
Diffstat (limited to 'crypto/src/asn1/ocsp')
-rw-r--r-- | crypto/src/asn1/ocsp/CertStatus.cs | 2 |
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); } } |