summary refs log tree commit diff
path: root/crypto/src/asn1/ocsp
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/ocsp')
-rw-r--r--crypto/src/asn1/ocsp/CertStatus.cs23
1 files changed, 12 insertions, 11 deletions
diff --git a/crypto/src/asn1/ocsp/CertStatus.cs b/crypto/src/asn1/ocsp/CertStatus.cs
index 7dd99b844..8a4d2242d 100644
--- a/crypto/src/asn1/ocsp/CertStatus.cs
+++ b/crypto/src/asn1/ocsp/CertStatus.cs
@@ -34,22 +34,23 @@ namespace Org.BouncyCastle.Asn1.Ocsp
             this.value = value;
         }
 
-		public CertStatus(
-            Asn1TaggedObject choice)
+		public CertStatus(Asn1TaggedObject choice)
         {
             this.tagNo = choice.TagNo;
 
 			switch (choice.TagNo)
             {
-				case 1:
-					value = RevokedInfo.GetInstance(choice, false);
-					break;
-				case 0:
-				case 2:
-					value = DerNull.Instance;
-					break;
-				default:
-					throw new ArgumentException("Unknown tag encountered: " + choice.TagNo);
+            case 0:
+                value = Asn1Null.GetInstance(choice, false);
+                break;
+            case 1:
+				value = RevokedInfo.GetInstance(choice, false);
+				break;
+			case 2:
+                value = Asn1Null.GetInstance(choice, false);
+                break;
+			default:
+				throw new ArgumentException("Unknown tag encountered: " + Asn1Utilities.GetTagText(choice));
             }
         }