From 87b4f6d86c17fa4f6f08ff1df71b78001b85e883 Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Tue, 5 Mar 2024 11:05:51 +0000 Subject: [PATCH] x509: Reworded documentation bits. Signed-off-by: Minos Galanakis --- ChangeLog.d/x509-add-ca_istrue.txt | 3 ++- include/mbedtls/x509_crt.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.d/x509-add-ca_istrue.txt b/ChangeLog.d/x509-add-ca_istrue.txt index 4594c2296b..c950dbc08b 100644 --- a/ChangeLog.d/x509-add-ca_istrue.txt +++ b/ChangeLog.d/x509-add-ca_istrue.txt @@ -1,4 +1,5 @@ Features * Add new accessor to expose the `MBEDTLS_PRIVATE(ca_istrue)` member of `mbedtls_x509_crt` structure. This requires setting - MBEDTLS_X509_EXT_BASIC_CONSTRAINTS. + the MBEDTLS_X509_EXT_BASIC_CONSTRAINTS bit in the certificate's + ext_types field. diff --git a/include/mbedtls/x509_crt.h b/include/mbedtls/x509_crt.h index fc1d0bc7b1..1ce0d23619 100644 --- a/include/mbedtls/x509_crt.h +++ b/include/mbedtls/x509_crt.h @@ -922,7 +922,7 @@ static inline int mbedtls_x509_crt_has_ext_type(const mbedtls_x509_crt *ctx, * \param[in] crt Certificate to be queried, must not be \c NULL * * \return \c 1 if this a CA certificate \c 0 otherwise. - * \return MBEDTLS_ERR_X509_INVALID_EXTENSIONS if the certificate does not support + * \return MBEDTLS_ERR_X509_INVALID_EXTENSIONS if the certificate does not contain * the Optional Basic Constraint extension. * */