pub unsafe extern "C" fn mbedtls_oid_from_numeric_string(
oid: *mut mbedtls_asn1_buf,
oid_str: *const c_char,
size: usize,
) -> c_intExpand description
\brief Translate a string containing a dotted-decimal representation of an ASN.1 OID into its encoded form (e.g. “1.2.840.113549” into “\x2A\x86\x48\x86\xF7\x0D”). On success, this function allocates oid->buf from the heap. It must be freed by the caller using mbedtls_free().
\param oid #mbedtls_asn1_buf to populate with the DER-encoded OID \param oid_str string representation of the OID to parse \param size length of the OID string, not including any null terminator
\return 0 if successful \return #MBEDTLS_ERR_ASN1_INVALID_DATA if \p oid_str does not represent a valid OID \return #MBEDTLS_ERR_ASN1_ALLOC_FAILED if the function fails to allocate oid->buf