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:
parent
43d7131c14
commit
c27ba3a531
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue