From f9b95cedaa95f8efdb5da5c6a1c8f7dece2c4801 Mon Sep 17 00:00:00 2001 From: Ben Taylor Date: Tue, 9 Dec 2025 08:22:42 +0000 Subject: [PATCH] Fix style issues Signed-off-by: Ben Taylor --- include/mbedtls/x509.h | 2 +- library/x509.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mbedtls/x509.h b/include/mbedtls/x509.h index 17890f892b..0fedd3ffa7 100644 --- a/include/mbedtls/x509.h +++ b/include/mbedtls/x509.h @@ -319,7 +319,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. * - * \param[in] pk A mbedtls_pk_context struct containing the pk_key_type to + * \param[in] pk A mbedtls_pk_context struct containing the pk_key_type to convert * \return A pointer to a string containing the pk_key_type. */ diff --git a/library/x509.c b/library/x509.c index 6b7868dfc7..b55214f076 100644 --- a/library/x509.c +++ b/library/x509.c @@ -130,9 +130,9 @@ const char *pk_key_type_to_string(const mbedtls_pk_context *pk) psa_key_type_t key_type; key_type = mbedtls_pk_get_key_type(pk); - if(PSA_KEY_TYPE_IS_RSA(key_type)){ + if (PSA_KEY_TYPE_IS_RSA(key_type)) { return "RSA"; - } else if(PSA_KEY_TYPE_IS_ECC(key_type)){ + } else if (PSA_KEY_TYPE_IS_ECC(key_type)) { return "EC"; } else { return "NONE";