mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Clarify SAN structure memory management
Co-authored-by: David Horstmann <david.horstmann@arm.com> Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
@ -382,7 +382,7 @@ int mbedtls_x509_time_is_future(const mbedtls_x509_time *from);
|
|||||||
* extension. Please note that this function might allocate
|
* extension. Please note that this function might allocate
|
||||||
* additional memory for a subject alternative name, thus
|
* additional memory for a subject alternative name, thus
|
||||||
* mbedtls_x509_free_subject_alt_name has to be called
|
* mbedtls_x509_free_subject_alt_name has to be called
|
||||||
* to dispose of the structure afterwards.
|
* to dispose of this additional memory afterwards.
|
||||||
*
|
*
|
||||||
* \param san_buf The buffer holding the raw data item of the subject
|
* \param san_buf The buffer holding the raw data item of the subject
|
||||||
* alternative name.
|
* alternative name.
|
||||||
@ -413,7 +413,7 @@ int mbedtls_x509_parse_subject_alt_name(const mbedtls_x509_buf *san_buf,
|
|||||||
/**
|
/**
|
||||||
* \brief Unallocate all data related to subject alternative name
|
* \brief Unallocate all data related to subject alternative name
|
||||||
*
|
*
|
||||||
* \param san SAN structure to free
|
* \param san SAN structure - extra memory owned by this structure will be freed
|
||||||
*/
|
*/
|
||||||
void mbedtls_x509_free_subject_alt_name(mbedtls_x509_subject_alternative_name *san);
|
void mbedtls_x509_free_subject_alt_name(mbedtls_x509_subject_alternative_name *san);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user