summary refs log tree commit diff
path: root/crypto/test/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-05-24 20:53:46 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-05-24 20:53:46 +0700
commit0317d352f20d6cbdbe7bf288229a1083af037b77 (patch)
tree358854757f71139af1d03ede79199165872485e0 /crypto/test/src
parentPortability fixes (diff)
downloadBouncyCastle.NET-ed25519-0317d352f20d6cbdbe7bf288229a1083af037b77.tar.xz
.NET 1.1 fixes
Diffstat (limited to 'crypto/test/src')
-rw-r--r--crypto/test/src/crypto/test/SP80038GTest.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/test/src/crypto/test/SP80038GTest.cs b/crypto/test/src/crypto/test/SP80038GTest.cs
index 2c8d5615f..676a564bf 100644
--- a/crypto/test/src/crypto/test/SP80038GTest.cs
+++ b/crypto/test/src/crypto/test/SP80038GTest.cs
@@ -274,6 +274,9 @@ namespace Org.BouncyCastle.Crypto.Tests
 
         private void testDisable()
         {
+#if NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || (PORTABLE && !DOTNET) || NET_1_1
+            // Can't SetEnvironmentVariable !
+#else
             Environment.SetEnvironmentVariable("org.bouncycastle.fpe.disable", "true");
             try
             {
@@ -309,6 +312,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 
             testFF3_1();
             Environment.SetEnvironmentVariable("org.bouncycastle.fpe.disable_ff1", "false");
+#endif
         }
 
         private void testFF3_1_255()