Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 592953d7 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Enum-ify tSMP_SEC_LEVEL

Bug: 188297862
Tag: #refactor
Test: gd/cert/run

Change-Id: I705601954554b7fc59122794907a4c25be07e795
parent e9ce61ec
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -212,10 +212,11 @@ enum : uint8_t {

typedef uint8_t tSMP_AUTH_REQ;

#define SMP_SEC_NONE 0
#define SMP_SEC_UNAUTHENTICATE (1 << 0)
#define SMP_SEC_AUTHENTICATED (1 << 2)
typedef uint8_t tSMP_SEC_LEVEL;
typedef enum : uint8_t {
  SMP_SEC_NONE = 0,
  SMP_SEC_UNAUTHENTICATE = 1,
  SMP_SEC_AUTHENTICATED = 2,
} tSMP_SEC_LEVEL;

/* Maximum Encryption Key Size range */
#define SMP_ENCR_KEY_SIZE_MIN 7