mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-27 02:54:14 +01:00
Don't use multiline comments in enums to silence check-names.sh
The sanity checking script tests/scripts/check-names.sh uses a simple state machine paired with a sequence of `sed` commands to extract enumeration constants from the code. This code, however, doesn't work properly when using multiline comments in enumerations such as recently done in the constants MBEDTLS_CIPHER_PSA_KEY_XXX. This commit doesn't attempt to make check-names.sh more robust but instead uses /* ... */ comment indicators in each comment line, while silences check-names.sh. Increasing the robustness of check-names.sh is instead tracked in #2210.
This commit is contained in:
parent
91cb605032
commit
9de97d7773
@ -122,16 +122,16 @@ typedef struct
|
|||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
MBEDTLS_CIPHER_PSA_KEY_UNSET = 0,
|
MBEDTLS_CIPHER_PSA_KEY_UNSET = 0,
|
||||||
MBEDTLS_CIPHER_PSA_KEY_OWNED, /* Used for PSA-based cipher contexts
|
MBEDTLS_CIPHER_PSA_KEY_OWNED, /* Used for PSA-based cipher contexts which */
|
||||||
* which use raw key material internally
|
/* use raw key material internally imported */
|
||||||
* imported into a freshly allocated key slot,
|
/* into a allocated key slot, and which */
|
||||||
* and which hence need to destroy that key
|
/* hence need to destroy that key slot */
|
||||||
* slot when they are no longer needed. */
|
/* when they are no longer needed. */
|
||||||
MBEDTLS_CIPHER_PSA_KEY_NOT_OWNED, /* Used for PSA-based cipher contexts
|
MBEDTLS_CIPHER_PSA_KEY_NOT_OWNED, /* Used for PSA-based cipher contexts */
|
||||||
* which use a key from a key slot
|
/* which use a key from a key slot */
|
||||||
* provided by the user, and which hence
|
/* provided by the user, and which */
|
||||||
* should not be destroyed when the
|
/* hence should not be destroyed when */
|
||||||
* context is no longer needed. */
|
/* the context is no longer needed. */
|
||||||
} mbedtls_cipher_psa_key_ownership;
|
} mbedtls_cipher_psa_key_ownership;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
Loading…
Reference in New Issue
Block a user