diff options
author | Peter Dettman <peter.dettman@gmail.com> | 2022-06-21 23:10:22 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@gmail.com> | 2022-06-21 23:10:22 +0700 |
commit | 454f5e65e84d49a34d7839343b584a21b34b7cd9 (patch) | |
tree | 18a13466d3a49a45daec6d982720409f6fd8bfd3 /crypto/src/tls | |
parent | Remove ApplicationSpecific classes (diff) | |
download | BouncyCastle.NET-ed25519-454f5e65e84d49a34d7839343b584a21b34b7cd9.tar.xz |
Cleanup old build systems
Diffstat (limited to 'crypto/src/tls')
-rw-r--r-- | crypto/src/tls/AbstractTlsContext.cs | 11 | ||||
-rw-r--r-- | crypto/src/tls/TlsUtilities.cs | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/crypto/src/tls/AbstractTlsContext.cs b/crypto/src/tls/AbstractTlsContext.cs index 0317b1430..be7a67dfc 100644 --- a/crypto/src/tls/AbstractTlsContext.cs +++ b/crypto/src/tls/AbstractTlsContext.cs @@ -13,21 +13,10 @@ namespace Org.BouncyCastle.Tls { private static long counter = Times.NanoTime(); -#if NETCF_1_0 - private static object counterLock = new object(); - private static long NextCounterValue() - { - lock (counterLock) - { - return ++counter; - } - } -#else private static long NextCounterValue() { return Interlocked.Increment(ref counter); } -#endif private static TlsNonceGenerator CreateNonceGenerator(TlsCrypto crypto, int connectionEnd) { diff --git a/crypto/src/tls/TlsUtilities.cs b/crypto/src/tls/TlsUtilities.cs index f0c8ba194..1e0b403c9 100644 --- a/crypto/src/tls/TlsUtilities.cs +++ b/crypto/src/tls/TlsUtilities.cs @@ -5454,11 +5454,7 @@ namespace Org.BouncyCastle.Tls #if !PORTABLE || DOTNET public static bool IsTimeout(SocketException e) { -#if NET_1_1 - return 10060 == e.ErrorCode; -#else return SocketError.TimedOut == e.SocketErrorCode; -#endif } #endif |