Remove ChangeLog files from the repo
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Pkcs / EnvelopedCms.cs
index 2040b984609b7e35f6046f119617ef0fc1f67991..1f57f5c55169931680496f4ed99ac4b1fd1e2aa6 100644 (file)
@@ -27,7 +27,7 @@
 // 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;
@@ -82,14 +82,16 @@ namespace System.Security.Cryptography.Pkcs {
                        : 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