Skip to main content

mbedtls_dhm_parse_dhmfile

Function mbedtls_dhm_parse_dhmfile 

Source
pub unsafe extern "C" fn mbedtls_dhm_parse_dhmfile(
    dhm: *mut mbedtls_dhm_context,
    path: *const c_char,
) -> c_int
Expand description

\brief This function loads and parses DHM parameters from a file.

\param dhm The DHM context to load the parameters to. This must be initialized. \param path The filename to read the DHM parameters from. This must not be \c NULL.

\return \c 0 on success. \return An \c MBEDTLS_ERR_DHM_XXX or \c MBEDTLS_ERR_PEM_XXX error code on failure.