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.

Parameters
ctx[IN] TLS connection handle
type[IN] serverName type
Return values
Thevalue of server_name, if successful. NULL, if failure.