mbedtls_x509_dn_gets() function
Store the certificate DN in printable form into buf; no more than size characters will be written.
Arguments
size
Maximum size of buffer
dn
The X509 name to represent
Return value
The length of the string written (not including the terminated nul byte), or a negative error code.