openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetCipherSuites()

int32_t HITLS_SetCipherSuites ( HITLS_Ctx ctx,
const uint16_t *  cipherSuites,
uint32_t  cipherSuitesSize 
)

Set the supported key suites.

The sequence of the key suites affects the priority of the selected key suites. The key suites with the highest priority are selected first.

注意
Do not check the cipher suite to meet the changes in the supported version.
参数
ctx[OUT] config handle.
cipherSuites[IN] Key suite array, corresponding to the HITLS_CipherSuite enumerated value.
cipherSuitesSize[IN] Key suite array length.
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.