miniroon

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

miniroon_caveat_name_perfhash.h (600B)


      1 #ifndef TRIE_HASH_miniroon_caveat_name_perfhash_hash
      2 #define TRIE_HASH_miniroon_caveat_name_perfhash_hash
      3 #include <stddef.h>
      4 #include <stdint.h>
      5 enum miniroon_caveat_name_perfhash_key {
      6     MINIROON_CAVEAT_ENV_ABSENT = 2,
      7     MINIROON_CAVEAT_ENV_FNMATCH = 4,
      8     MINIROON_CAVEAT_ENV_IS = 1,
      9     MINIROON_CAVEAT_ENV_REGMATCH = 3,
     10     MINIROON_CAVEAT_UNDEFINED = 0,
     11 };
     12 enum miniroon_caveat_name_perfhash_key miniroon_caveat_name_perfhash_hash(const char *string, size_t length);
     13 #endif                       /* TRIE_HASH_miniroon_caveat_name_perfhash_hash */
     14 
     15 // {IMP} miniroon_caveat_name_perfhash.c