mbedtls_asn1_write_ia5_string() function
Write a string in ASN.1 format using the IA5String string encoding tag (#MBEDTLS_ASN1_IA5_STRING).
Syntax
int mbedtls_asn1_write_ia5_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.