Skip to main content

mbedtls_oid_get_attr_short_name

Function mbedtls_oid_get_attr_short_name 

Source
pub unsafe extern "C" fn mbedtls_oid_get_attr_short_name(
    oid: *const mbedtls_asn1_buf,
    short_name: *mut *const c_char,
) -> c_int
Expand description

\brief Translate an X.509 attribute type OID into the short name (e.g. the OID for an X520 Common Name into “CN”)

\param oid OID to use \param short_name place to store the string pointer

\return 0 if successful, or MBEDTLS_ERR_OID_NOT_FOUND