diff options
Diffstat (limited to 'csharp/src/IceSSL/SSLEngine.cs')
-rw-r--r-- | csharp/src/IceSSL/SSLEngine.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/csharp/src/IceSSL/SSLEngine.cs b/csharp/src/IceSSL/SSLEngine.cs index db1a3dfc32c..bd8f527b8e4 100644 --- a/csharp/src/IceSSL/SSLEngine.cs +++ b/csharp/src/IceSSL/SSLEngine.cs @@ -31,8 +31,6 @@ namespace IceSSL _securityTraceCategory = "Security"; _initialized = false; _trustManager = new TrustManager(_communicator); - -#if !UNITY _tls12Support = false; try { @@ -42,7 +40,6 @@ namespace IceSSL catch(Exception) { } -#endif } internal void initialize() @@ -78,8 +75,6 @@ namespace IceSSL storeLocation = StoreLocation.CurrentUser; } _useMachineContext = certStoreLocation == "LocalMachine"; - -#if !UNITY X509KeyStorageFlags keyStorageFlags; if(_useMachineContext) { @@ -130,7 +125,6 @@ namespace IceSSL importCertificate(name, val, keyStorageFlags); } } -#endif // // Protocols selects which protocols to enable, by default we only enable TLS1.0 @@ -138,12 +132,8 @@ namespace IceSSL // _protocols = parseProtocols( properties.getPropertyAsListWithDefault(prefix + "Protocols", -#if UNITY - new string[]{"TLS1_0"})); -#else _tls12Support ? new string[]{"TLS1_0", "TLS1_1", "TLS1_2"} : new string[]{"TLS1_0", "TLS1_1"})); -#endif // // CheckCertName determines whether we compare the name in a peer's // certificate against its hostname. @@ -162,7 +152,6 @@ namespace IceSSL // _checkCRL = properties.getPropertyAsIntWithDefault(prefix + "CheckCRL", 0); -#if !UNITY // // Check for a certificate verifier. // @@ -433,8 +422,6 @@ namespace IceSSL } } } -#endif - _initialized = true; } @@ -540,12 +527,10 @@ namespace IceSSL s.Append("\nencrypted = " + (stream.IsEncrypted ? "yes" : "no")); s.Append("\nsigned = " + (stream.IsSigned ? "yes" : "no")); s.Append("\nmutually authenticated = " + (stream.IsMutuallyAuthenticated ? "yes" : "no")); -#if !UNITY s.Append("\nhash algorithm = " + stream.HashAlgorithm + "/" + stream.HashStrength); s.Append("\ncipher algorithm = " + stream.CipherAlgorithm + "/" + stream.CipherStrength); s.Append("\nkey exchange algorithm = " + stream.KeyExchangeAlgorithm + "/" + stream.KeyExchangeStrength); s.Append("\nprotocol = " + stream.SslProtocol); -#endif _logger.trace(_securityTraceCategory, s.ToString()); } @@ -888,7 +873,6 @@ namespace IceSSL return false; } -#if !UNITY private void importCertificate(string propName, string propValue, X509KeyStorageFlags keyStorageFlags) { // @@ -990,7 +974,6 @@ namespace IceSSL store.Close(); } } -#endif // // Split strings using a delimiter. Quotes are supported. @@ -1121,7 +1104,6 @@ namespace IceSSL return result; } -#if !UNITY private static X509Certificate2Collection findCertificates(string prop, StoreLocation storeLocation, string name, string value) { @@ -1323,7 +1305,6 @@ namespace IceSSL } return result; } -#endif private static bool decodeASN1Length(byte[] data, int start, out int len, out int next) { @@ -1377,8 +1358,6 @@ namespace IceSSL private CertificateVerifier _verifier; private PasswordCallback _passwordCallback; private TrustManager _trustManager; -#if !UNITY private bool _tls12Support; -#endif } } |