+2010-03-16 Jb Evain <jbevain@novell.com>
+
+ * X509Certificate.cs: use MOONLIGHT symbol to disambiguate
+ MonoTouch and Moonlight code.
+
2009-04-30 Sebastien Pouliot <sebastien@ximian.com>
* X509Certificate.cs: Adapt to work with only [DSA|RSA]Managed when
// BUG: MS BCL 1.0 can't import a key which
// isn't the same size as the one present in
// the container.
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
_dsa = new DSAManaged (dsaParams.Y.Length << 3);
#else
_dsa = (DSA) new DSACryptoServiceProvider (dsaParams.Y.Length << 3);
// isn't the same size as the one present in
// the container.
int keySize = (rsaParams.Modulus.Length << 3);
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
_rsa = new RSAManaged (keySize);
#else
_rsa = (RSA) new RSACryptoServiceProvider (keySize);
public bool CheckSignature (byte[] hash, string hashAlgorithm, byte[] signature)
{
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
string hashName = GetHashNameFromOID (hashAlgorithm);
HashAlgorithm algo = HashAlgorithm.Create (hashName);
return PKCS1.Verify_v15 (RSA, algo, hash, signature);
+2010-03-16 Jb Evain <jbevain@novell.com>
+
+ * SecurityTransparentAttribute.cs
+ * SecurityFrame.cs
+ * IPermission.cs
+ * SecurityManager.cs
+ * SecurityManager_2_1.cs
+ * SecuritySafeCriticalAttribute.cs:
+ use MOONLIGHT symbol to disambiguate MonoTouch and Moonlight code.
+
2009-10-30 Marek Safar <marek.safar@gmail.com>
* SecurityRuleSet.cs, SecurityRulesAttribute.cs: Implemented.
namespace System.Security {
[ComVisible (true)]
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
public interface IPermission {
#else
public interface IPermission : ISecurityEncodable {
}
#pragma warning restore 649
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
internal struct SecurityFrame {
private AppDomain _domain;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
using System.Collections;
using System.Globalization;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
using System.Reflection;
using System.Runtime.CompilerServices;
namespace System.Security {
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
[MonoTODO ("Only supported by the runtime when CoreCLR is enabled")]
#endif
[AttributeUsage (AttributeTargets.All, AllowMultiple=false, Inherited=false)]
namespace System.Security {
-#if !NET_2_1 || MONOTOUCH
+#if MOONLIGHT
[MonoTODO ("Only supported by the runtime when CoreCLR is enabled")]
#endif
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)]