Skip to content

Commit

Permalink
Fix more missing-prototype and unused-function errors in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Schuster <michael@schuster.ms>
  • Loading branch information
misch7 committed Jun 5, 2024
1 parent d74b452 commit 815f555
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/src/drivers/platform_builtin_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#if defined(MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS)

#include <test/helpers.h>

#include <psa/crypto.h>
Expand Down Expand Up @@ -56,7 +58,7 @@ static const mbedtls_psa_builtin_key_description_t builtin_keys[] = {
#endif
};

psa_status_t mbedtls_psa_platform_get_builtin_key(
static psa_status_t mbedtls_psa_platform_get_builtin_key(
mbedtls_svc_key_id_t key_id,
psa_key_lifetime_t *lifetime,
psa_drv_slot_number_t *slot_number)
Expand All @@ -76,3 +78,5 @@ psa_status_t mbedtls_psa_platform_get_builtin_key(

return PSA_ERROR_DOES_NOT_EXIST;
}

#endif /* MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS */
3 changes: 2 additions & 1 deletion tests/suites/test_suite_ctr_drbg.function
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ exit:
}

static const int thread_random_reps = 10;
static void *thread_random_function(void *ctx)
void *thread_random_function(void *ctx); /* only used conditionally in ctr_drbg_threads */
void *thread_random_function(void *ctx)
{
unsigned char out[16];
memset(out, 0, sizeof(out));
Expand Down

0 comments on commit 815f555

Please sign in to comment.