summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-08-24 17:45:36 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-08-24 17:45:36 +0700
commit4ddac01c520424d2384641979211a0924347c16d (patch)
tree0a38db4b8adbb63f15571e054ae5a218d1c25023
parentExclude some files in the TLS test data (diff)
downloadBouncyCastle.NET-ed25519-4ddac01c520424d2384641979211a0924347c16d.tar.xz
Fix NAnt build issue
-rw-r--r--crypto/test/src/crypto/tls/test/TlsTestUtilities.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/test/src/crypto/tls/test/TlsTestUtilities.cs b/crypto/test/src/crypto/tls/test/TlsTestUtilities.cs
index 8e56f7819..272dfd4fd 100644
--- a/crypto/test/src/crypto/tls/test/TlsTestUtilities.cs
+++ b/crypto/test/src/crypto/tls/test/TlsTestUtilities.cs
@@ -1,4 +1,5 @@
 using System;
+using System.Globalization;
 using System.IO;
 using System.Text;
 
@@ -43,7 +44,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests
             byte[] der = c.GetEncoded();
             byte[] sha1 = Sha256DigestOf(der);
             byte[] hexBytes = Hex.Encode(sha1);
-            string hex = Platform.ToUpperInvariant(Encoding.ASCII.GetString(hexBytes));
+            string hex = Encoding.ASCII.GetString(hexBytes).ToUpper(CultureInfo.InvariantCulture);
 
             StringBuilder fp = new StringBuilder();
             int i = 0;