mbedtls_asn1_write_utf8_string() function
Write a UTF8 string in ASN.1 format using the UTF8String string encoding tag (#MBEDTLS_ASN1_PRINTABLE_STRING).
Syntax
int mbedtls_asn1_write_utf8_string( unsigned char **p,
unsigned char *start,
const char *text,
size_t text_len );
Arguments
p
The reference to the current position pointer.
start
The start of the buffer, for bounds-checking.
text_len
The length of \p text in bytes (which might be strictly larger than the number of characters).
Return value
The number of bytes written to \p p on success. A negative error code on failure.
Notes
This function works backwards in data buffer.