diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-06-04 13:53:00 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-06-04 13:53:00 +0700 |
commit | 6c7a86e0b73074b2a42ea129acc831ace01d41a5 (patch) | |
tree | c0bb41783442ef197d0f10bcb56f6e015fc687ec /crypto/src/asn1/Asn1EncodableVector.cs | |
parent | Name constraint validation updates from bc-java (diff) | |
download | BouncyCastle.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.cs | 8 |
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] { |