summary refs log tree commit diff
path: root/crypto/src/asn1/cmp/PKIConfirmContent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/cmp/PKIConfirmContent.cs')
-rw-r--r--crypto/src/asn1/cmp/PKIConfirmContent.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/src/asn1/cmp/PKIConfirmContent.cs b/crypto/src/asn1/cmp/PKIConfirmContent.cs
index 34a66f3f7..6cc5b6ae6 100644
--- a/crypto/src/asn1/cmp/PKIConfirmContent.cs
+++ b/crypto/src/asn1/cmp/PKIConfirmContent.cs
@@ -19,7 +19,7 @@ namespace Org.BouncyCastle.Asn1.Cmp
 
         public static PkiConfirmContent GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
         {
-            return GetInstance(Asn1Null.GetInstance(taggedObject, declaredExplicit));
+            return new PkiConfirmContent(Asn1Null.GetInstance(taggedObject, declaredExplicit));
         }
 
         private readonly Asn1Null m_val;
@@ -40,9 +40,6 @@ namespace Org.BouncyCastle.Asn1.Cmp
 		 * </pre>
 		 * @return a basic ASN.1 object representation.
 		 */
-		public override Asn1Object ToAsn1Object()
-		{
-			return m_val;
-		}
+		public override Asn1Object ToAsn1Object() => m_val;
 	}
 }