summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1EncodableVector.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-06-04 13:53:00 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-06-04 13:53:00 +0700
commit6c7a86e0b73074b2a42ea129acc831ace01d41a5 (patch)
treec0bb41783442ef197d0f10bcb56f6e015fc687ec /crypto/src/asn1/Asn1EncodableVector.cs
parentName constraint validation updates from bc-java (diff)
downloadBouncyCastle.NET-ed25519-6c7a86e0b73074b2a42ea129acc831ace01d41a5.tar.xz
Port LinkedCertificate from bc-java
Diffstat (limited to 'crypto/src/asn1/Asn1EncodableVector.cs')
-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 49532fe57..8a97e8b4f 100644
--- a/crypto/src/asn1/Asn1EncodableVector.cs
+++ b/crypto/src/asn1/Asn1EncodableVector.cs
@@ -61,6 +61,14 @@ namespace Org.BouncyCastle.Asn1
 			}
 		}
 
+        public void AddOptionalTagged(bool isExplicit, int tagNo, Asn1Encodable obj)
+        {
+            if (null != obj)
+            {
+                v.Add(new DerTaggedObject(isExplicit, tagNo, obj));
+            }
+        }
+
 		public Asn1Encodable this[
 			int index]
 		{