From fec7fc30f18d628fb9788e5d87eb78fc5bd0bc53 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Wed, 8 Nov 2023 13:45:43 +0530 Subject: [PATCH] fix(api-docs): include in the ECDSA APIs for doxygen build --- components/mbedtls/port/include/ecdsa/ecdsa_alt.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/mbedtls/port/include/ecdsa/ecdsa_alt.h b/components/mbedtls/port/include/ecdsa/ecdsa_alt.h index 84406247fb..a8646979a7 100644 --- a/components/mbedtls/port/include/ecdsa/ecdsa_alt.h +++ b/components/mbedtls/port/include/ecdsa/ecdsa_alt.h @@ -31,7 +31,7 @@ typedef struct { #endif } esp_ecdsa_pk_conf_t; //TODO: IDF-7925 (Add a config to select the ecdsa key from the key manager peripheral) -#ifdef SOC_ECDSA_SUPPORT_EXPORT_PUBKEY +#if SOC_ECDSA_SUPPORT_EXPORT_PUBKEY || __DOXYGEN__ /** * @brief Populate the public key buffer of the mbedtls_ecp_keypair context. @@ -45,9 +45,10 @@ typedef struct { * - -1 if invalid efuse block is specified */ int esp_ecdsa_load_pubkey(mbedtls_ecp_keypair *keypair, int efuse_blk); -#endif -#ifdef CONFIG_MBEDTLS_HARDWARE_ECDSA_SIGN +#endif // SOC_ECDSA_SUPPORT_EXPORT_PUBKEY || __DOXYGEN__ + +#if CONFIG_MBEDTLS_HARDWARE_ECDSA_SIGN || __DOXYGEN__ /** * @brief Initialize MPI to notify mbedtls_ecdsa_sign to use the private key in efuse @@ -97,7 +98,8 @@ int esp_ecdsa_privkey_load_pk_context(mbedtls_pk_context *key_ctx, int efuse_blk * - -1 otherwise */ int esp_ecdsa_set_pk_context(mbedtls_pk_context *key_ctx, esp_ecdsa_pk_conf_t *conf); -#endif + +#endif // CONFIG_MBEDTLS_HARDWARE_ECDSA_SIGN || __DOXYGEN__ #ifdef __cplusplus }