summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Reynolds <alexander.reynolds@myport.ac.uk>2018-08-03 11:20:06 +0100
committerAlex Reynolds <alexander.reynolds@myport.ac.uk>2018-08-03 11:20:06 +0100
commit0a55f215e35e16196068c33478dd280dbcd3421d (patch)
tree2ef0ba8d838f57196bbfbe3f19ea2c624d8b94ae
parentIDEA: Update patent information (diff)
downloadBouncyCastle.NET-ed25519-0a55f215e35e16196068c33478dd280dbcd3421d.tar.xz
Add public constructors to PollRepContent
-rw-r--r--crypto/src/asn1/cmp/PollRepContent.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/crypto/src/asn1/cmp/PollRepContent.cs b/crypto/src/asn1/cmp/PollRepContent.cs
index f8bb098a2..ff75d7d6d 100644
--- a/crypto/src/asn1/cmp/PollRepContent.cs
+++ b/crypto/src/asn1/cmp/PollRepContent.cs
@@ -33,6 +33,25 @@ namespace Org.BouncyCastle.Asn1.Cmp
             throw new ArgumentException("Invalid object: " + Platform.GetTypeName(obj), "obj");
 		}
 
+	    public PollRepContent(
+	        DerInteger certReqId,
+	        DerInteger checkAfter)
+	    {
+	        this.certReqId = certReqId;
+	        this.checkAfter = checkAfter;
+	        this.reason = null;
+	    }
+
+        public PollRepContent(
+	        DerInteger certReqId,
+	        DerInteger checkAfter,
+	        PkiFreeText reason)
+	    {
+	        this.certReqId = certReqId;
+	        this.checkAfter = checkAfter;
+	        this.reason = reason;
+	    }
+
 		public virtual DerInteger CertReqID
 		{
 			get { return certReqId; }