浏览代码

2009-06-05 Marek Safar <[email protected]>

	* Makefile: Fixed NET_2_0 conditional to actually handle Mono.Security
	dependency.


svn path=/trunk/mcs/; revision=135540
Marek Safar 16 年之前
父节点
当前提交
2d36f50709
共有 32 个文件被更改,包括 55 次插入28 次删除
  1. 5 0
      mcs/class/System.Security/ChangeLog
  2. 7 0
      mcs/class/System.Security/Makefile
  3. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/AlgorithmIdentifier.cs
  4. 5 0
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/ChangeLog
  5. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsRecipientCollection.cs
  6. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsSigner.cs
  7. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/ContentInfo.cs
  8. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/EnvelopedCms.cs
  9. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/KeyAgreeRecipientInfo.cs
  10. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/KeyTransRecipientInfo.cs
  11. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9Attribute.cs
  12. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9ContentType.cs
  13. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9DocumentDescription.cs
  14. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9DocumentName.cs
  15. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9MessageDigest.cs
  16. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9SigningTime.cs
  17. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/PublicKeyInfo.cs
  18. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfo.cs
  19. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs
  20. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoEnumerator.cs
  21. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignedCms.cs
  22. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfo.cs
  23. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfoCollection.cs
  24. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfoEnumerator.cs
  25. 1 1
      mcs/class/System.Security/System.Security.Cryptography.X509Certificates/X509Certificate2UI.cs
  26. 5 0
      mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog
  27. 1 1
      mcs/class/System.Security/System.Security.Cryptography.Xml/KeyInfoX509Data.cs
  28. 2 2
      mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs
  29. 5 0
      mcs/class/System.Security/System.Security.Cryptography/ChangeLog
  30. 1 1
      mcs/class/System.Security/System.Security.Cryptography/CryptographicAttribute.cs
  31. 1 1
      mcs/class/System.Security/System.Security.Cryptography/CryptographicAttributeCollection.cs
  32. 1 1
      mcs/class/System.Security/System.Security.Cryptography/CryptographicAttributeEnumerator.cs

+ 5 - 0
mcs/class/System.Security/ChangeLog

@@ -1,3 +1,8 @@
+2009-06-05  Marek Safar  <[email protected]>
+
+	* Makefile: Fixed NET_2_0 conditional to actually handle Mono.Security
+	dependency.
+
 2008-11-01  Sebastien Pouliot  <[email protected]>
 
 	* System.Security_test.dll.sources: Add new tests to build

+ 7 - 0
mcs/class/System.Security/Makefile

@@ -13,6 +13,13 @@ LIB_MCS_FLAGS += -r:Mono.Security.dll -nowarn:414
 TEST_MCS_FLAGS += -nowarn:168,183,414
 endif
 
+VALID_PROFILE := $(filter net_1_1 net_2_0 net_2_1_raw net_4_0, $(PROFILE))
+ifndef VALID_PROFILE
+# @echo "** Warning: System.Security.dll built without parts that depend on: Mono.Security.dll "
+else
+ LIB_MCS_FLAGS += -d:SECURITY_DEP
+endif
+
 EXTRA_DISTFILES = \
 	Test/System.Security.Cryptography.Xml/sample.pfx \
 	Test/System.Security.Cryptography.Xml/EncryptedXmlSample1.xml \

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/AlgorithmIdentifier.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 namespace System.Security.Cryptography.Pkcs {
 

+ 5 - 0
mcs/class/System.Security/System.Security.Cryptography.Pkcs/ChangeLog

@@ -1,3 +1,8 @@
+2009-06-05  Marek Safar  <[email protected]>
+
+	* *.cs: Fixed NET_2_0 conditional to actually handle Mono.Security
+	dependency.
+
 2008-11-01  Sebastien Pouliot  <[email protected]>
 
 	* CmsRecipientCollection.cs: Add comment about compatibility-NRE

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsRecipientCollection.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Collections;
 using System.Security.Cryptography.X509Certificates;

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsSigner.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Security.Cryptography.X509Certificates;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/ContentInfo.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using Mono.Security;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/EnvelopedCms.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Collections;
 using System.Security.Cryptography.X509Certificates;

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/KeyAgreeRecipientInfo.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 namespace System.Security.Cryptography.Pkcs {
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/KeyTransRecipientInfo.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Collections;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9Attribute.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Collections;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9ContentType.cs

@@ -28,7 +28,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using Mono.Security;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9DocumentDescription.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Text;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9DocumentName.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Text;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9MessageDigest.cs

@@ -28,7 +28,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using Mono.Security;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/Pkcs9SigningTime.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Globalization;
 using System.Text;

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/PublicKeyInfo.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfo.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System;
 using System.Collections;

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoEnumerator.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System;
 using System.Collections;

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignedCms.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Security.Cryptography.X509Certificates;
 using System.Security.Cryptography.Xml;

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfo.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Security.Cryptography.X509Certificates;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfoCollection.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Collections;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfoEnumerator.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System;
 using System.Collections;

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.X509Certificates/X509Certificate2UI.cs

@@ -26,7 +26,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 // Notes:
 //

+ 5 - 0
mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog

@@ -1,3 +1,8 @@
+2009-06-05  Marek Safar  <[email protected]>
+
+	* *.cs: Fixed NET_2_0 conditional to actually handle Mono.Security
+	dependency.
+
 2008-11-01  Sebastien Pouliot  <[email protected]>
 
 	* EncryptedXml.cs: Add proper null check inside methods.

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography.Xml/KeyInfoX509Data.cs

@@ -59,7 +59,7 @@ namespace System.Security.Cryptography.Xml {
 			AddCertificate (cert);
 		}
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 		public KeyInfoX509Data (X509Certificate cert, X509IncludeOption includeOption)
 		{
 			if (cert == null)

+ 2 - 2
mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs

@@ -721,7 +721,7 @@ namespace System.Security.Cryptography.Xml {
 				pkEnumerator = m_signature.KeyInfo.GetEnumerator ();
 			}
 			
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 			if (_x509Enumerator != null) {
 				if (_x509Enumerator.MoveNext ()) {
 					X509Certificate cert = (X509Certificate) _x509Enumerator.Current;
@@ -745,7 +745,7 @@ namespace System.Security.Cryptography.Xml {
 					return key;
 				}
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 				if (kic is KeyInfoX509Data) {
 					_x509Enumerator = ((KeyInfoX509Data) kic).Certificates.GetEnumerator ();
 					if (_x509Enumerator.MoveNext ()) {

+ 5 - 0
mcs/class/System.Security/System.Security.Cryptography/ChangeLog

@@ -1,3 +1,8 @@
+2009-06-05  Marek Safar  <[email protected]>
+
+	* *.cs: Fixed NET_2_0 conditional to actually handle Mono.Security
+	dependency.
+
 2005-10-27  Sebastien Pouliot  <[email protected]>
 
 	* ProtectedData.cs: Added support for Windows (2000 and later) by 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography/CryptographicAttribute.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Collections;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography/CryptographicAttributeCollection.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Collections;
 

+ 1 - 1
mcs/class/System.Security/System.Security.Cryptography/CryptographicAttributeEnumerator.cs

@@ -27,7 +27,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+#if NET_2_0 && SECURITY_DEP
 
 using System.Collections;