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.

Parameters
ctx[IN] TLS connection handle
Return values
HITLS_SNI_HOSTNAME_TYPE,ifsuccessful. -1: if failure.