openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_GetServernameType()

int32_t HITLS_GetServernameType ( const HITLS_Ctx ctx)

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

参数
ctx[IN] TLS connection handle
返回值
HITLS_SNI_HOSTNAME_TYPE,ifsuccessful. -1: if failure.