v0.1.11 - Fix named path-role display and allow fixed paths without range/set

This commit is contained in:
Laan Tungir
2026-08-04 20:53:12 -04:00
parent 86a97aee01
commit f0e90e0ea6
32 changed files with 2516 additions and 42 deletions
+5
View File
@@ -55,6 +55,11 @@ typedef struct {
char role_path[ROLE_PATH_MAX];
char pubkey_hex[ROLE_PUBKEY_HEX_MAX];
int derived;
int path_range_lo; /* for SELECTOR_ROLE_PATH: inclusive lower bound for %d; -1 = fixed path */
int path_range_hi; /* inclusive upper bound; == path_range_lo for single */
int path_default_index; /* default index when client sends {"role":...} without "index"; -1 = require explicit */
int path_allowed_indices[64]; /* explicit set of allowed indices (for sets); 0 = use range */
int path_allowed_count; /* 0 = use range_lo/range_hi; >0 = use allowed_indices */
} role_entry_t;
typedef struct { role_entry_t entries[ROLE_TABLE_MAX_ENTRIES]; int count; } role_table_t;
void role_table_init(role_table_t *table);