diff options
-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 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) |