// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+#if SECURITY_DEP
using System.Collections;
using System.Security.Cryptography.X509Certificates;
: 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