openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetDhAutoSupport()

int32_t HITLS_CFG_SetDhAutoSupport ( HITLS_Config config,
bool  support 
)

Set whether the DH parameter can be automatically selected by users.

If the value is true, the DH parameter is automatically selected based on the length of the certificate private key. If the value is false, the DH parameter needs to be set.

参数
config[OUT] Config handle
support[IN] Whether to support the function. The options are as follows: True: yes; False: no.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,configis null.