From c23592d7ee51b0ae385200cbdfde7e15aba045d0 Mon Sep 17 00:00:00 2001 From: Ben Taylor Date: Mon, 5 Jan 2026 13:48:10 +0000 Subject: [PATCH] Add improvements to code comments and docs Signed-off-by: Ben Taylor --- include/mbedtls/x509.h | 2 +- library/x509.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/x509.h b/include/mbedtls/x509.h index fb0c314668..130c427c4f 100644 --- a/include/mbedtls/x509.h +++ b/include/mbedtls/x509.h @@ -317,7 +317,7 @@ int mbedtls_x509_dn_gets(char *buf, size_t size, const mbedtls_x509_name *dn); /** - * \brief Convert the pk_key_type to a string. + * \brief Return the key's type as a string. * * \param[in] pk A mbedtls_pk_context struct containing the pk_key_type to convert diff --git a/library/x509.c b/library/x509.c index 67a6baa4c8..d7bc5d2dfb 100644 --- a/library/x509.c +++ b/library/x509.c @@ -123,7 +123,7 @@ int mbedtls_x509_get_alg(unsigned char **p, const unsigned char *end, } /* - * Convert pk_key_type to a string + * Convert the key type to a string */ const char *mbedtls_x509_pk_type_as_string(const mbedtls_pk_context *pk) {