mbedtls_asn1_write_utf8_string() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesmbedTLSmbedtls_asn1_write_utf8_string()

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 );
Implemented in asn1write.c:275

Arguments

p

The reference to the current position pointer.

start

The start of the buffer, for bounds-checking.

text

The string to write.

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.

References

LocationText
asn1write.c:275
int mbedtls_asn1_write_utf8_string( unsigned char **p, unsigned char *start,
asn1write.h:248
int mbedtls_asn1_write_utf8_string( unsigned char **p, unsigned char *start,

Call Tree

Functions called by mbedtls_asn1_write_utf8_string()
mbedtls_asn1_write_utf8_string()