summaryrefslogtreecommitdiff
path: root/csharp/src
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-02-22 17:40:08 +0100
committerJose <jose@zeroc.com>2017-02-22 17:40:08 +0100
commitaa3e8bd6874a69aa25ea19625c6493de2b9cb7e0 (patch)
tree8d42b267f1ddb06123b09b1c89b1a300a21a530a /csharp/src
parentLinux build failure (diff)
downloadice-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.cs5
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)
{