summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-10-04 13:18:30 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-10-04 13:18:30 +0700
commita6e3f6230eceb35539195560472605df29304685 (patch)
tree9db1054803f2bf1df337871e806db5bb3bdc5894 /crypto/src
parentSupport GOST agreement OIDs (diff)
downloadBouncyCastle.NET-ed25519-a6e3f6230eceb35539195560472605df29304685.tar.xz
Add variant of AddOptionalTagged
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/asn1/Asn1EncodableVector.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1EncodableVector.cs b/crypto/src/asn1/Asn1EncodableVector.cs
index f50eb6f98..bf8d324ad 100644
--- a/crypto/src/asn1/Asn1EncodableVector.cs
+++ b/crypto/src/asn1/Asn1EncodableVector.cs
@@ -133,6 +133,14 @@ namespace Org.BouncyCastle.Asn1
             }
         }
 
+        public void AddOptionalTagged(bool isExplicit, int tagClass, int tagNo, Asn1Encodable obj)
+        {
+            if (null != obj)
+            {
+                Add(new DerTaggedObject(isExplicit, tagClass, tagNo, obj));
+            }
+        }
+
         public void AddAll(Asn1EncodableVector other)
         {
             if (null == other)