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/AbstractTlsContext.cs | |
parent | Remove ApplicationSpecific classes (diff) | |
download | BouncyCastle.NET-ed25519-454f5e65e84d49a34d7839343b584a21b34b7cd9.tar.xz |
Cleanup old build systems
Diffstat (limited to 'crypto/src/tls/AbstractTlsContext.cs')
-rw-r--r-- | crypto/src/tls/AbstractTlsContext.cs | 11 |
1 files changed, 0 insertions, 11 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) { |