Merge pull request #3979 from radical/fix-xbuild-tgt
[mono.git] / mcs / class / System / Mono.Btls / MonoBtlsContext.cs
index 051656ce0536f5bff3e4a82fc9f2ed76d344f823..343ecc47e45759d2347c4e8d98b6e019eb3e8a6e 100644 (file)
@@ -270,11 +270,13 @@ namespace Mono.Btls
 
                        var cipher = (CipherSuiteCode)ssl.GetCipher ();
                        var protocol = (TlsProtocolCode)ssl.GetVersion ();
+                       var serverName = ssl.GetServerName ();
                        Debug ("GET CONNECTION INFO: {0:x}:{0} {1:x}:{1} {2}", cipher, protocol, (TlsProtocolCode)protocol);
 
                        connectionInfo = new MonoTlsConnectionInfo {
                                CipherSuiteCode = cipher,
-                               ProtocolVersion = GetProtocol (protocol)
+                               ProtocolVersion = GetProtocol (protocol),
+                               PeerDomainName = serverName
                        };
                }