summary refs log tree commit diff
path: root/crypto/src/asn1/crmf
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-06-10 20:44:56 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-06-10 20:44:56 +0700
commita0fd16c00237ba5f59fb5e3fd4901f7b3c1aa97e (patch)
tree237b01e11fa199090c4a5bb5944a5100da9b5daf /crypto/src/asn1/crmf
parentAdded byte[] return when macBlock not set. (diff)
downloadBouncyCastle.NET-ed25519-a0fd16c00237ba5f59fb5e3fd4901f7b3c1aa97e.tar.xz
Misc. asn1 changes from Java API
Diffstat (limited to 'crypto/src/asn1/crmf')
-rw-r--r--crypto/src/asn1/crmf/CertReqMsg.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/src/asn1/crmf/CertReqMsg.cs b/crypto/src/asn1/crmf/CertReqMsg.cs
index 20fd4179a..03ce32d99 100644
--- a/crypto/src/asn1/crmf/CertReqMsg.cs
+++ b/crypto/src/asn1/crmf/CertReqMsg.cs
@@ -39,6 +39,13 @@ namespace Org.BouncyCastle.Asn1.Crmf
             return null;
         }
 
+        public static CertReqMsg GetInstance(
+            Asn1TaggedObject obj,
+            bool isExplicit)
+        {
+            return GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
+        }
+
         /**
          * Creates a new CertReqMsg.
          * @param certReq CertRequest