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