openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_GetAuthId()

int32_t HITLS_CFG_GetAuthId ( const HITLS_Cipher cipher,
HITLS_AuthAlgo authAlg 
)

Obtain the server authorization algorithm type based on the cipher suite.

Parameters
cipher[IN] Cipher suite
authAlg[OUT] Obtained server authorization type.
Return values
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.