diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-08-24 17:45:36 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-08-24 17:45:36 +0700 |
commit | 4ddac01c520424d2384641979211a0924347c16d (patch) | |
tree | 0a38db4b8adbb63f15571e054ae5a218d1c25023 | |
parent | Exclude some files in the TLS test data (diff) | |
download | BouncyCastle.NET-ed25519-4ddac01c520424d2384641979211a0924347c16d.tar.xz |
Fix NAnt build issue
-rw-r--r-- | crypto/test/src/crypto/tls/test/TlsTestUtilities.cs | 3 |
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; |