yhirose / cpp-httplib

A C++ header-only HTTP/HTTPS server and client library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ssl server name indication

tangshiixang opened this issue · comments

In SSL_ctrl(ssl2, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, static_cast<void *>(const_cast<char *>(host_.c_str()))) : host_ should use ' host part of Host Field'. Because Host may be domain when host_ is ip.

@tangshiixang thank for the feedback, but I actually don't understand what you mentioned. Could you explain it more clearly?