diff options
Diffstat (limited to 'crypto/src/asn1/smime/SMIMECapability.cs')
-rw-r--r-- | crypto/src/asn1/smime/SMIMECapability.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crypto/src/asn1/smime/SMIMECapability.cs b/crypto/src/asn1/smime/SMIMECapability.cs index 5709cb815..9b30c6dba 100644 --- a/crypto/src/asn1/smime/SMIMECapability.cs +++ b/crypto/src/asn1/smime/SMIMECapability.cs @@ -89,13 +89,8 @@ namespace Org.BouncyCastle.Asn1.Smime public override Asn1Object ToAsn1Object() { Asn1EncodableVector v = new Asn1EncodableVector(capabilityID); - - if (parameters != null) - { - v.Add(parameters); - } - - return new DerSequence(v); + v.AddOptional(parameters); + return new DerSequence(v); } } } |