openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetServerName()

const char * HITLS_GetServerName ( const HITLS_Ctx ctx,
const int  type 
)

Obtain the value of server_name before, during, or after the handshake on the client or server.

参数
ctx[IN] TLS connection handle
type[IN] serverName type
返回值
Thevalue of server_name, if successful. NULL, if failure.