Related to #832.
Both calc_cn_host in cpprestsdk/Release/src/http/client/http_client_asio.cpp and winhttp_client::send_request in cpprestsdk/Release/src/http/client/http_client_winhttp.cpp cause the entire Host header value to be compared with the certificate Common Name which causes an SSL handshake error if the caller passes a Host header including a port number, e.g. when non-default.
|
encResult = &hostHeader->second; |
|
const auto& requestHost = hostHeader->second; |
Related to #832.
Both
calc_cn_hostin cpprestsdk/Release/src/http/client/http_client_asio.cpp andwinhttp_client::send_requestin cpprestsdk/Release/src/http/client/http_client_winhttp.cpp cause the entireHostheader value to be compared with the certificate Common Name which causes an SSL handshake error if the caller passes aHostheader including a port number, e.g. when non-default.cpprestsdk/Release/src/http/client/http_client_asio.cpp
Line 103 in 411a109
cpprestsdk/Release/src/http/client/http_client_winhttp.cpp
Line 1110 in 411a109