miniroon

Simplistic macaroon-based authorization for Unix systems
git clone https://ccx.te2000.cz/git/miniroon
Log | Files | Refs

caveats.h (545B)


      1 #ifndef MINIROON_CAVEATS_H
      2 #define MINIROON_CAVEATS_H
      3 
      4 // implementation:
      5 // {IMP} caveats.c
      6 
      7 #include "envmap.h"
      8 
      9 typedef struct miniroon_caveats_state_s {
     10   miniroon_env_map emap;
     11 } miniroon_caveats_state;
     12 
     13 void miniroon_caveats_state_init(miniroon_caveats_state *state);
     14 void miniroon_caveats_state_exec(miniroon_caveats_state *state, char const *const *argv);
     15 void miniroon_caveat_prepare(const bytebuffer caveat, miniroon_caveats_state *state);
     16 void miniroon_caveat_validate(const bytebuffer caveat, miniroon_caveats_state *state);
     17 
     18 #endif