1b528cefcSMark Murray /* This is a generated file */ 2b528cefcSMark Murray #ifndef __hdb_protos_h__ 3b528cefcSMark Murray #define __hdb_protos_h__ 4b528cefcSMark Murray 5b528cefcSMark Murray #ifdef __STDC__ 6b528cefcSMark Murray #include <stdarg.h> 7b528cefcSMark Murray #ifndef __P 8b528cefcSMark Murray #define __P(x) x 9b528cefcSMark Murray #endif 10b528cefcSMark Murray #else 11b528cefcSMark Murray #ifndef __P 12b528cefcSMark Murray #define __P(x) () 13b528cefcSMark Murray #endif 14b528cefcSMark Murray #endif 15b528cefcSMark Murray 16b528cefcSMark Murray krb5_error_code 17b528cefcSMark Murray hdb_check_db_format __P(( 18b528cefcSMark Murray krb5_context context, 19b528cefcSMark Murray HDB *db)); 20b528cefcSMark Murray 21b528cefcSMark Murray krb5_error_code 22b528cefcSMark Murray hdb_clear_master_key __P(( 23b528cefcSMark Murray krb5_context context, 24b528cefcSMark Murray HDB *db)); 25b528cefcSMark Murray 26b528cefcSMark Murray krb5_error_code 27b528cefcSMark Murray hdb_create __P(( 28b528cefcSMark Murray krb5_context context, 29b528cefcSMark Murray HDB **db, 30b528cefcSMark Murray const char *filename)); 31b528cefcSMark Murray 32b528cefcSMark Murray krb5_error_code 33b528cefcSMark Murray hdb_db_create __P(( 34b528cefcSMark Murray krb5_context context, 35b528cefcSMark Murray HDB **db, 36b528cefcSMark Murray const char *filename)); 37b528cefcSMark Murray 38b528cefcSMark Murray krb5_error_code 39b528cefcSMark Murray hdb_enctype2key __P(( 40b528cefcSMark Murray krb5_context context, 41b528cefcSMark Murray hdb_entry *e, 42b528cefcSMark Murray krb5_enctype enctype, 43b528cefcSMark Murray Key **key)); 44b528cefcSMark Murray 45b528cefcSMark Murray krb5_error_code 46b528cefcSMark Murray hdb_entry2string __P(( 47b528cefcSMark Murray krb5_context context, 48b528cefcSMark Murray hdb_entry *ent, 49b528cefcSMark Murray char **str)); 50b528cefcSMark Murray 51b528cefcSMark Murray int 52b528cefcSMark Murray hdb_entry2value __P(( 53b528cefcSMark Murray krb5_context context, 54b528cefcSMark Murray hdb_entry *ent, 55b528cefcSMark Murray krb5_data *value)); 56b528cefcSMark Murray 57b528cefcSMark Murray krb5_error_code 58b528cefcSMark Murray hdb_foreach __P(( 59b528cefcSMark Murray krb5_context context, 60b528cefcSMark Murray HDB *db, 61b528cefcSMark Murray unsigned flags, 62b528cefcSMark Murray hdb_foreach_func_t func, 63b528cefcSMark Murray void *data)); 64b528cefcSMark Murray 65b528cefcSMark Murray void 66b528cefcSMark Murray hdb_free_entry __P(( 67b528cefcSMark Murray krb5_context context, 68b528cefcSMark Murray hdb_entry *ent)); 69b528cefcSMark Murray 70b528cefcSMark Murray void 71b528cefcSMark Murray hdb_free_key __P((Key *key)); 72b528cefcSMark Murray 73b528cefcSMark Murray krb5_error_code 74b528cefcSMark Murray hdb_init_db __P(( 75b528cefcSMark Murray krb5_context context, 76b528cefcSMark Murray HDB *db)); 77b528cefcSMark Murray 78b528cefcSMark Murray int 79b528cefcSMark Murray hdb_key2principal __P(( 80b528cefcSMark Murray krb5_context context, 81b528cefcSMark Murray krb5_data *key, 82b528cefcSMark Murray krb5_principal p)); 83b528cefcSMark Murray 84b528cefcSMark Murray krb5_error_code 85b528cefcSMark Murray hdb_lock __P(( 86b528cefcSMark Murray int fd, 87b528cefcSMark Murray int operation)); 88b528cefcSMark Murray 89b528cefcSMark Murray krb5_error_code 90b528cefcSMark Murray hdb_ndbm_create __P(( 91b528cefcSMark Murray krb5_context context, 92b528cefcSMark Murray HDB **db, 93b528cefcSMark Murray const char *filename)); 94b528cefcSMark Murray 95b528cefcSMark Murray krb5_error_code 96b528cefcSMark Murray hdb_next_enctype2key __P(( 97b528cefcSMark Murray krb5_context context, 98b528cefcSMark Murray hdb_entry *e, 99b528cefcSMark Murray krb5_enctype enctype, 100b528cefcSMark Murray Key **key)); 101b528cefcSMark Murray 102b528cefcSMark Murray int 103b528cefcSMark Murray hdb_principal2key __P(( 104b528cefcSMark Murray krb5_context context, 105b528cefcSMark Murray krb5_principal p, 106b528cefcSMark Murray krb5_data *key)); 107b528cefcSMark Murray 108b528cefcSMark Murray krb5_error_code 109b528cefcSMark Murray hdb_print_entry __P(( 110b528cefcSMark Murray krb5_context context, 111b528cefcSMark Murray HDB *db, 112b528cefcSMark Murray hdb_entry *entry, 113b528cefcSMark Murray void *data)); 114b528cefcSMark Murray 115b528cefcSMark Murray krb5_error_code 116b528cefcSMark Murray hdb_process_master_key __P(( 117b528cefcSMark Murray krb5_context context, 118b528cefcSMark Murray EncryptionKey key, 119b528cefcSMark Murray krb5_data *schedule)); 120b528cefcSMark Murray 121b528cefcSMark Murray krb5_error_code 122b528cefcSMark Murray hdb_read_master_key __P(( 123b528cefcSMark Murray krb5_context context, 124b528cefcSMark Murray const char *filename, 125b528cefcSMark Murray EncryptionKey *key)); 126b528cefcSMark Murray 127b528cefcSMark Murray void 128b528cefcSMark Murray hdb_seal_keys __P(( 129b528cefcSMark Murray HDB *db, 130b528cefcSMark Murray hdb_entry *ent)); 131b528cefcSMark Murray 132b528cefcSMark Murray krb5_error_code 133b528cefcSMark Murray hdb_set_master_key __P(( 134b528cefcSMark Murray krb5_context context, 135b528cefcSMark Murray HDB *db, 136b528cefcSMark Murray EncryptionKey key)); 137b528cefcSMark Murray 138b528cefcSMark Murray krb5_error_code 139b528cefcSMark Murray hdb_set_master_keyfile __P(( 140b528cefcSMark Murray krb5_context context, 141b528cefcSMark Murray HDB *db, 142b528cefcSMark Murray const char *keyfile)); 143b528cefcSMark Murray 144b528cefcSMark Murray krb5_error_code 145b528cefcSMark Murray hdb_unlock __P((int fd)); 146b528cefcSMark Murray 147b528cefcSMark Murray void 148b528cefcSMark Murray hdb_unseal_keys __P(( 149b528cefcSMark Murray HDB *db, 150b528cefcSMark Murray hdb_entry *ent)); 151b528cefcSMark Murray 152b528cefcSMark Murray int 153b528cefcSMark Murray hdb_value2entry __P(( 154b528cefcSMark Murray krb5_context context, 155b528cefcSMark Murray krb5_data *value, 156b528cefcSMark Murray hdb_entry *ent)); 157b528cefcSMark Murray 158b528cefcSMark Murray #endif /* __hdb_protos_h__ */ 159