openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetTmpDh()

int32_t HITLS_CFG_SetTmpDh ( HITLS_Config config,
HITLS_CRYPT_Key dhPkey 
)

Set the DH parameter specified by the user.

参数
config[OUT] Config handle
dhPkey[IN] User-specified DH key.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,configis empty, or dhPkey is empty.