openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_IsServer()

int32_t HITLS_IsServer ( const HITLS_Ctx ctx,
uint8_t *  isServer 
)

Indicates whether the HiTLS object functions as the server.

参数
ctx[OUT] TLS connection handle
isServer[IN] Indicates whether to function as the server.
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.