diff options
author | Jose <jose@zeroc.com> | 2017-02-22 17:40:08 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-02-22 17:40:08 +0100 |
commit | aa3e8bd6874a69aa25ea19625c6493de2b9cb7e0 (patch) | |
tree | 8d42b267f1ddb06123b09b1c89b1a300a21a530a /csharp/src | |
parent | Linux build failure (diff) | |
download | ice-aa3e8bd6874a69aa25ea19625c6493de2b9cb7e0.tar.bz2 ice-aa3e8bd6874a69aa25ea19625c6493de2b9cb7e0.tar.xz ice-aa3e8bd6874a69aa25ea19625c6493de2b9cb7e0.zip |
Fix hostname verification to ignore errors when IceSSL.VerifyPeer is 0
Diffstat (limited to 'csharp/src')
-rw-r--r-- | csharp/src/IceSSL/TransceiverI.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/csharp/src/IceSSL/TransceiverI.cs b/csharp/src/IceSSL/TransceiverI.cs index 0dbf195c515..f46396bd9a2 100644 --- a/csharp/src/IceSSL/TransceiverI.cs +++ b/csharp/src/IceSSL/TransceiverI.cs @@ -610,9 +610,12 @@ namespace IceSSL message = "SSL certificate validation failed - Hostname mismatch"; return false; } + else + { + errors ^= (int)SslPolicyErrors.RemoteCertificateNameMismatch; + } } - if((errors & (int)SslPolicyErrors.RemoteCertificateChainErrors) > 0 && _chain.ChainStatus != null && _chain.ChainStatus.Length > 0) { |