From 34d6a5c3df89b5d8c53272470b7287d85aaff575 Mon Sep 17 00:00:00 2001
From: Ryan Everett <ryan.everett@arm.com>
Date: Mon, 13 Nov 2023 09:52:12 +0000
Subject: [PATCH] Move enum definition to satisfy `check_names.py`

Signed-off-by: Ryan Everett <ryan.everett@arm.com>
---
 library/psa_crypto_core.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/library/psa_crypto_core.h b/library/psa_crypto_core.h
index 700e0fef66..46c57755ec 100644
--- a/library/psa_crypto_core.h
+++ b/library/psa_crypto_core.h
@@ -33,16 +33,18 @@
  */
 int psa_can_do_hash(psa_algorithm_t hash_alg);
 
+typedef enum {
+    PSA_SLOT_EMPTY = 0,
+    PSA_SLOT_OCCUPIED,
+} psa_key_slot_status_t;
+
 /** The data structure representing a key slot, containing key material
  * and metadata for one key.
  */
 typedef struct {
     psa_core_key_attributes_t attr;
 
-    enum {
-        PSA_SLOT_EMPTY = 0,
-        PSA_SLOT_OCCUPIED,
-    } status;
+    psa_key_slot_status_t status;
 
     /*
      * Number of locks on the key slot held by the library.