openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetDhAutoSupport()

int32_t HITLS_SetDhAutoSupport ( HITLS_Ctx ctx,
bool  support 
)

Sets whether to support the function of automatically selecting DH parameters.

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.

Parameters
ctx[IN/OUT] hitls context.
support[IN] Whether to support. The options are as follows: true: yes; false: no.
Return values
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,ctxis null.