mbedtls_asn1_write_oid() function
Write an OID tag (#MBEDTLS_ASN1_OID) and data in ASN.1 format.
Syntax
int mbedtls_asn1_write_oid( unsigned char **p,
unsigned char *start,
const char *oid,
size_t oid_len );
Arguments
p
The reference to the current position pointer.
start
The start of the buffer, for bounds-checking.
oid_len
The length of the OID.
Return value
The number of bytes written to \p p on success. A negative \c MBEDTLS_ERR_ASN1_XXX error code on failure.
Notes
This function works backwards in data buffer.