(openssl) verify that the certificate we are getting match the domain we are requesting

This commit is contained in:
Benjamin Sergeant
2018-10-05 12:08:45 -07:00
parent 96903b4d25
commit 10ce046b0f
3 changed files with 132 additions and 17 deletions

View File

@@ -202,7 +202,9 @@ namespace ix {
if (sscanf(line, "HTTP/1.0 %d", &status) == 1)
{
std::stringstream ss;
ss << "Server version is HTTP/1.0. Rejecting connection to " << host;
ss << "Server version is HTTP/1.0. Rejecting connection to " << host
<< ", status: " << status
<< ", HTTP Status line: " << line;
return WebSocketInitResult(false, status, ss.str());
}