#ifndef _TZ_HDM_ALLOWLIST_H_
#define _TZ_HDM_ALLOWLIST_H_

#define TA_NAME_SIZE 17

#include "hdm_core.h"
#include "hdmOperations.h"

// KG TA
#define KG_TA_NAME "tz_kg"

// Allowlist
typedef const struct {
  char ta_name[TA_NAME_SIZE];
} hdm_ta_allowlist_t;

// HDM Allowlist Definitions
static const hdm_ta_allowlist_t hdm_ta_allowlist[] =
{                                                                                
  KG_TA_NAME,
};

int32_t get_app_name(Object credentials, char* app_name, size_t app_name_buf_sz, size_t* app_name_sz);
uint32_t check_ta_cmd_permission(char* caller_ta_name, size_t caller_ta_name_len);

#endif
