Function esp_idf_sys::mbedtls_pk_can_do
source ยท pub unsafe extern "C" fn mbedtls_pk_can_do(
ctx: *const mbedtls_pk_context,
type_: mbedtls_pk_type_t,
) -> c_int
Expand description
\brief Tell if a context can do the operation given by type
\param ctx The context to query. It must have been initialized. \param type The desired type.
\return 1 if the context can do operations on the given type. \return 0 if the context cannot do the operations on the given type. This is always the case for a context that has been initialized but not set up, or that has been cleared with mbedtls_pk_free().