+2008-10-12 Sebastien Pouliot <sebastien@ximian.com>
+
+ * EnvelopedCms.cs, SignedCms.cs: Remove unneeded field
+ initialization to their default values.
+ [Found using Gendarme AvoidUnneededFieldInitializationRule]
+
2006-12-15 Sebastien Pouliot <sebastien@ximian.com>
* SignedCms.cs: Add missing TODO. Some code exists but depends on
: this (contentInfo)
{
_idType = recipientIdentifierType;
- _version = ((_idType == SubjectIdentifierType.SubjectKeyIdentifier) ? 2 : 0);
+ if (_idType == SubjectIdentifierType.SubjectKeyIdentifier)
+ _version = 2;
}
public EnvelopedCms (SubjectIdentifierType recipientIdentifierType, ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm)
: this (contentInfo, encryptionAlgorithm)
{
_idType = recipientIdentifierType;
- _version = ((_idType == SubjectIdentifierType.SubjectKeyIdentifier) ? 2 : 0);
+ if (_idType == SubjectIdentifierType.SubjectKeyIdentifier)
+ _version = 2;
}
// properties
public SignedCms (SubjectIdentifierType signerIdentifierType) : this ()
{
_type = signerIdentifierType;
- _version = 0;
}
public SignedCms (SubjectIdentifierType signerIdentifierType, ContentInfo content)
: this (content, false)
{
_type = signerIdentifierType;
- _version = 0;
}
public SignedCms (SubjectIdentifierType signerIdentifierType, ContentInfo content, bool detached)
: this (content, detached)
{
_type = signerIdentifierType;
- _version = 0;
}
// properties