Skip to content

Commit f8306d1

Browse files
Rename internal macro to pass check-names.sh
check-names.sh rejects MBEDTLS_XXX identifiers that are not defined in a public header.
1 parent f04cddb commit f8306d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/psa_crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,9 +1432,9 @@ psa_status_t psa_export_public_key( psa_key_handle_t handle,
14321432
#if defined(static_assert)
14331433
static_assert( ( MBEDTLS_PSA_KA_MASK_EXTERNAL_ONLY & MBEDTLS_PSA_KA_MASK_DUAL_USE ) == 0,
14341434
"One or more key attribute flag is listed as both external-only and dual-use" );
1435-
static_assert( ( MBEDTLS_PSA_KA_MASK_INTERNAL_ONLY & MBEDTLS_PSA_KA_MASK_DUAL_USE ) == 0,
1435+
static_assert( ( PSA_KA_MASK_INTERNAL_ONLY & MBEDTLS_PSA_KA_MASK_DUAL_USE ) == 0,
14361436
"One or more key attribute flag is listed as both external-only and dual-use" );
1437-
static_assert( ( MBEDTLS_PSA_KA_MASK_INTERNAL_ONLY & MBEDTLS_PSA_KA_MASK_EXTERNAL_ONLY ) == 0,
1437+
static_assert( ( PSA_KA_MASK_INTERNAL_ONLY & MBEDTLS_PSA_KA_MASK_EXTERNAL_ONLY ) == 0,
14381438
"One or more key attribute flag is listed as both internal-only and external-only" );
14391439
#endif
14401440

library/psa_crypto_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ typedef struct
6868

6969
/* A mask of key attribute flags used only internally.
7070
* Currently there aren't any. */
71-
#define MBEDTLS_PSA_KA_MASK_INTERNAL_ONLY ( \
71+
#define PSA_KA_MASK_INTERNAL_ONLY ( \
7272
0 )
7373

7474
/** Test whether a key slot is occupied.

0 commit comments

Comments
 (0)