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_add_master_key __P(( 18 krb5_context context, 19 krb5_keyblock *key, 20 hdb_master_key *inout)); 21 22 krb5_error_code 23 hdb_check_db_format __P(( 24 krb5_context context, 25 HDB *db)); 26 27 krb5_error_code 28 hdb_clear_master_key __P(( 29 krb5_context context, 30 HDB *db)); 31 32 krb5_error_code 33 hdb_create __P(( 34 krb5_context context, 35 HDB **db, 36 const char *filename)); 37 38 krb5_error_code 39 hdb_db_create __P(( 40 krb5_context context, 41 HDB **db, 42 const char *filename)); 43 44 krb5_error_code 45 hdb_enctype2key __P(( 46 krb5_context context, 47 hdb_entry *e, 48 krb5_enctype enctype, 49 Key **key)); 50 51 krb5_error_code 52 hdb_entry2string __P(( 53 krb5_context context, 54 hdb_entry *ent, 55 char **str)); 56 57 int 58 hdb_entry2value __P(( 59 krb5_context context, 60 hdb_entry *ent, 61 krb5_data *value)); 62 63 krb5_error_code 64 hdb_foreach __P(( 65 krb5_context context, 66 HDB *db, 67 unsigned flags, 68 hdb_foreach_func_t func, 69 void *data)); 70 71 void 72 hdb_free_entry __P(( 73 krb5_context context, 74 hdb_entry *ent)); 75 76 void 77 hdb_free_key __P((Key *key)); 78 79 void 80 hdb_free_master_key __P(( 81 krb5_context context, 82 hdb_master_key mkey)); 83 84 krb5_error_code 85 hdb_init_db __P(( 86 krb5_context context, 87 HDB *db)); 88 89 int 90 hdb_key2principal __P(( 91 krb5_context context, 92 krb5_data *key, 93 krb5_principal p)); 94 95 krb5_error_code 96 hdb_ldap_create __P(( 97 krb5_context context, 98 HDB ** db, 99 const char *filename)); 100 101 krb5_error_code 102 hdb_lock __P(( 103 int fd, 104 int operation)); 105 106 krb5_error_code 107 hdb_ndbm_create __P(( 108 krb5_context context, 109 HDB **db, 110 const char *filename)); 111 112 krb5_error_code 113 hdb_next_enctype2key __P(( 114 krb5_context context, 115 const hdb_entry *e, 116 krb5_enctype enctype, 117 Key **key)); 118 119 int 120 hdb_principal2key __P(( 121 krb5_context context, 122 krb5_principal p, 123 krb5_data *key)); 124 125 krb5_error_code 126 hdb_print_entry __P(( 127 krb5_context context, 128 HDB *db, 129 hdb_entry *entry, 130 void *data)); 131 132 krb5_error_code 133 hdb_process_master_key __P(( 134 krb5_context context, 135 int kvno, 136 krb5_keyblock *key, 137 krb5_enctype etype, 138 hdb_master_key *mkey)); 139 140 krb5_error_code 141 hdb_read_master_key __P(( 142 krb5_context context, 143 const char *filename, 144 hdb_master_key *mkey)); 145 146 krb5_error_code 147 hdb_seal_keys __P(( 148 krb5_context context, 149 HDB *db, 150 hdb_entry *ent)); 151 152 krb5_error_code 153 hdb_seal_keys_mkey __P(( 154 krb5_context context, 155 hdb_entry *ent, 156 hdb_master_key mkey)); 157 158 krb5_error_code 159 hdb_set_master_key __P(( 160 krb5_context context, 161 HDB *db, 162 krb5_keyblock *key)); 163 164 krb5_error_code 165 hdb_set_master_keyfile __P(( 166 krb5_context context, 167 HDB *db, 168 const char *keyfile)); 169 170 krb5_error_code 171 hdb_unlock __P((int fd)); 172 173 krb5_error_code 174 hdb_unseal_keys __P(( 175 krb5_context context, 176 HDB *db, 177 hdb_entry *ent)); 178 179 krb5_error_code 180 hdb_unseal_keys_mkey __P(( 181 krb5_context context, 182 hdb_entry *ent, 183 hdb_master_key mkey)); 184 185 int 186 hdb_value2entry __P(( 187 krb5_context context, 188 krb5_data *value, 189 hdb_entry *ent)); 190 191 krb5_error_code 192 hdb_write_master_key __P(( 193 krb5_context context, 194 const char *filename, 195 hdb_master_key mkey)); 196 197 #endif /* __hdb_protos_h__ */ 198