New tests.
[mono.git] / mcs / class / corlib / Mono.Security.Cryptography / KeyPairPersistence.cs
index ad43b08c49505c5d4122e3d90b071bac115473a3..ac694bb5ef0d1d2721a43743de6e688ef642e00f 100644 (file)
@@ -26,6 +26,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !MOONLIGHT
+
 using System;
 using System.Globalization;
 using System.IO;
@@ -323,7 +325,7 @@ namespace Mono.Security.Cryptography {
                        // check for Unix platforms - see FAQ for more details
                        // http://www.mono-project.com/FAQ:_Technical#How_to_detect_the_execution_platform_.3F
                        int platform = (int) Environment.OSVersion.Platform;
-                       if ((platform == 4) || (platform == 128))
+                       if ((platform == 4) || (platform == 128) || (platform == 6))
                                return true;
 
                        // while we ask the runtime for Windows OS
@@ -452,3 +454,6 @@ namespace Mono.Security.Cryptography {
                }
        }
 }
+
+#endif
+