Skip to main content

mbedtls_oid_get_numeric_string

Function mbedtls_oid_get_numeric_string 

Source
pub unsafe extern "C" fn mbedtls_oid_get_numeric_string(
    buf: *mut c_char,
    size: usize,
    oid: *const mbedtls_asn1_buf,
) -> c_int
Expand description

\brief Translate an ASN.1 OID into its numeric representation (e.g. “\x2A\x86\x48\x86\xF7\x0D” into “1.2.840.113549”)

\param buf buffer to put representation in \param size size of the buffer \param oid OID to translate

\return Length of the string written (excluding final NULL) or MBEDTLS_ERR_OID_BUF_TOO_SMALL in case of error