summary refs log tree commit diff
path: root/crypto/src/asn1/ocsp/ResponseBytes.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/ocsp/ResponseBytes.cs')
-rw-r--r--crypto/src/asn1/ocsp/ResponseBytes.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/ocsp/ResponseBytes.cs b/crypto/src/asn1/ocsp/ResponseBytes.cs
index c5cbc3d3f..9b8d80132 100644
--- a/crypto/src/asn1/ocsp/ResponseBytes.cs
+++ b/crypto/src/asn1/ocsp/ResponseBytes.cs
@@ -14,10 +14,11 @@ namespace Org.BouncyCastle.Asn1.Ocsp
             return new ResponseBytes(Asn1Sequence.GetInstance(obj));
         }
 
-        public static ResponseBytes GetInstance(Asn1TaggedObject obj, bool explicitly)
-        {
-            return new ResponseBytes(Asn1Sequence.GetInstance(obj, explicitly));
-        }
+        public static ResponseBytes GetInstance(Asn1TaggedObject obj, bool explicitly) =>
+            new ResponseBytes(Asn1Sequence.GetInstance(obj, explicitly));
+
+        public static ResponseBytes GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            new ResponseBytes(Asn1Sequence.GetTagged(taggedObject, declaredExplicit));
 
         private readonly DerObjectIdentifier m_responseType;
         private readonly Asn1OctetString m_response;