New tests.
[mono.git] / mcs / class / corlib / Mono.Security / StrongName.cs
index 1c696722492385a57acfb896ea3cc1998e3c6d25..2905a03c125c4a9302b0249f588504d2d4bae5cd 100644 (file)
@@ -160,7 +160,7 @@ namespace Mono.Security {
                        get {
                                if (rsa == null)
                                        return false;
-#if INSIDE_CORLIB && !NET_2_1
+#if INSIDE_CORLIB && !MOONLIGHT
                                // the easy way
                                if (RSA is RSACryptoServiceProvider) {
                                        // available as internal for corlib
@@ -467,8 +467,12 @@ namespace Mono.Security {
                        if (!initialized) {
                                lock (lockObject) {
                                        if (!initialized) {
+#if NET_2_1
+                                               // Moonlight cannot depend on machine.config
+#else
                                                string config = Environment.GetMachineConfigPath ();
                                                StrongNameManager.LoadConfig (config);
+#endif
                                                initialized = true;
                                        }
                                }