1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Add mbedtls_x509_dn_get_next function

Allow iteration through relative DNs when X509 name contains multi-
value RDNs.

Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
Werner Lewis
2022-06-17 15:59:58 +01:00
parent ca3c6a5698
commit b3acb053fb
5 changed files with 97 additions and 0 deletions

View File

@ -266,6 +266,16 @@ mbedtls_x509_time;
*/
int mbedtls_x509_dn_gets( char *buf, size_t size, const mbedtls_x509_name *dn );
/**
* \brief Return the next relative DN in an X509 name.
*
* \param dn Current node in the X509 name
*
* \return Pointer to the first attribute-value pair of the
* next RDN in sequence, or NULL if end is reached.
*/
mbedtls_x509_name * mbedtls_x509_dn_get_next( mbedtls_x509_name * start );
/**
* \brief Store the certificate serial in printable form into buf;
* no more than size characters will be written.