1 /* This is a generated file */ 2 #ifndef __hdb_protos_h__ 3 #define __hdb_protos_h__ 4 5 #include <stdarg.h> 6 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 krb5_error_code 12 entry2mit_string_int ( 13 krb5_context /*context*/, 14 krb5_storage */*sp*/, 15 hdb_entry */*ent*/); 16 17 krb5_error_code 18 hdb_add_current_keys_to_history ( 19 krb5_context /*context*/, 20 hdb_entry */*entry*/); 21 22 krb5_error_code 23 hdb_add_master_key ( 24 krb5_context /*context*/, 25 krb5_keyblock */*key*/, 26 hdb_master_key */*inout*/); 27 28 krb5_error_code 29 hdb_check_db_format ( 30 krb5_context /*context*/, 31 HDB */*db*/); 32 33 krb5_error_code 34 hdb_clear_extension ( 35 krb5_context /*context*/, 36 hdb_entry */*entry*/, 37 int /*type*/); 38 39 krb5_error_code 40 hdb_clear_master_key ( 41 krb5_context /*context*/, 42 HDB */*db*/); 43 44 krb5_error_code 45 hdb_create ( 46 krb5_context /*context*/, 47 HDB **/*db*/, 48 const char */*filename*/); 49 50 krb5_error_code 51 hdb_db_create ( 52 krb5_context /*context*/, 53 HDB **/*db*/, 54 const char */*filename*/); 55 56 const char * 57 hdb_db_dir (krb5_context /*context*/); 58 59 const char * 60 hdb_dbinfo_get_acl_file ( 61 krb5_context /*context*/, 62 struct hdb_dbinfo */*dbp*/); 63 64 const krb5_config_binding * 65 hdb_dbinfo_get_binding ( 66 krb5_context /*context*/, 67 struct hdb_dbinfo */*dbp*/); 68 69 const char * 70 hdb_dbinfo_get_dbname ( 71 krb5_context /*context*/, 72 struct hdb_dbinfo */*dbp*/); 73 74 const char * 75 hdb_dbinfo_get_label ( 76 krb5_context /*context*/, 77 struct hdb_dbinfo */*dbp*/); 78 79 const char * 80 hdb_dbinfo_get_log_file ( 81 krb5_context /*context*/, 82 struct hdb_dbinfo */*dbp*/); 83 84 const char * 85 hdb_dbinfo_get_mkey_file ( 86 krb5_context /*context*/, 87 struct hdb_dbinfo */*dbp*/); 88 89 struct hdb_dbinfo * 90 hdb_dbinfo_get_next ( 91 struct hdb_dbinfo */*dbp*/, 92 struct hdb_dbinfo */*dbprevp*/); 93 94 const char * 95 hdb_dbinfo_get_realm ( 96 krb5_context /*context*/, 97 struct hdb_dbinfo */*dbp*/); 98 99 const char * 100 hdb_default_db (krb5_context /*context*/); 101 102 krb5_error_code 103 hdb_enctype2key ( 104 krb5_context /*context*/, 105 hdb_entry */*e*/, 106 krb5_enctype /*enctype*/, 107 Key **/*key*/); 108 109 krb5_error_code 110 hdb_entry2string ( 111 krb5_context /*context*/, 112 hdb_entry */*ent*/, 113 char **/*str*/); 114 115 int 116 hdb_entry2value ( 117 krb5_context /*context*/, 118 const hdb_entry */*ent*/, 119 krb5_data */*value*/); 120 121 int 122 hdb_entry_alias2value ( 123 krb5_context /*context*/, 124 const hdb_entry_alias */*alias*/, 125 krb5_data */*value*/); 126 127 krb5_error_code 128 hdb_entry_check_mandatory ( 129 krb5_context /*context*/, 130 const hdb_entry */*ent*/); 131 132 int 133 hdb_entry_clear_password ( 134 krb5_context /*context*/, 135 hdb_entry */*entry*/); 136 137 krb5_error_code 138 hdb_entry_get_ConstrainedDelegACL ( 139 const hdb_entry */*entry*/, 140 const HDB_Ext_Constrained_delegation_acl **/*a*/); 141 142 krb5_error_code 143 hdb_entry_get_aliases ( 144 const hdb_entry */*entry*/, 145 const HDB_Ext_Aliases **/*a*/); 146 147 int 148 hdb_entry_get_password ( 149 krb5_context /*context*/, 150 HDB */*db*/, 151 const hdb_entry */*entry*/, 152 char **/*p*/); 153 154 krb5_error_code 155 hdb_entry_get_pkinit_acl ( 156 const hdb_entry */*entry*/, 157 const HDB_Ext_PKINIT_acl **/*a*/); 158 159 krb5_error_code 160 hdb_entry_get_pkinit_cert ( 161 const hdb_entry */*entry*/, 162 const HDB_Ext_PKINIT_cert **/*a*/); 163 164 krb5_error_code 165 hdb_entry_get_pkinit_hash ( 166 const hdb_entry */*entry*/, 167 const HDB_Ext_PKINIT_hash **/*a*/); 168 169 krb5_error_code 170 hdb_entry_get_pw_change_time ( 171 const hdb_entry */*entry*/, 172 time_t */*t*/); 173 174 int 175 hdb_entry_set_password ( 176 krb5_context /*context*/, 177 HDB */*db*/, 178 hdb_entry */*entry*/, 179 const char */*p*/); 180 181 krb5_error_code 182 hdb_entry_set_pw_change_time ( 183 krb5_context /*context*/, 184 hdb_entry */*entry*/, 185 time_t /*t*/); 186 187 HDB_extension * 188 hdb_find_extension ( 189 const hdb_entry */*entry*/, 190 int /*type*/); 191 192 krb5_error_code 193 hdb_foreach ( 194 krb5_context /*context*/, 195 HDB */*db*/, 196 unsigned /*flags*/, 197 hdb_foreach_func_t /*func*/, 198 void */*data*/); 199 200 void 201 hdb_free_dbinfo ( 202 krb5_context /*context*/, 203 struct hdb_dbinfo **/*dbp*/); 204 205 void 206 hdb_free_entry ( 207 krb5_context /*context*/, 208 hdb_entry_ex */*ent*/); 209 210 void 211 hdb_free_key (Key */*key*/); 212 213 void 214 hdb_free_keys ( 215 krb5_context /*context*/, 216 int /*len*/, 217 Key */*keys*/); 218 219 void 220 hdb_free_master_key ( 221 krb5_context /*context*/, 222 hdb_master_key /*mkey*/); 223 224 krb5_error_code 225 hdb_generate_key_set ( 226 krb5_context /*context*/, 227 krb5_principal /*principal*/, 228 Key **/*ret_key_set*/, 229 size_t */*nkeyset*/, 230 int /*no_salt*/); 231 232 krb5_error_code 233 hdb_generate_key_set_password ( 234 krb5_context /*context*/, 235 krb5_principal /*principal*/, 236 const char */*password*/, 237 Key **/*keys*/, 238 size_t */*num_keys*/); 239 240 int 241 hdb_get_dbinfo ( 242 krb5_context /*context*/, 243 struct hdb_dbinfo **/*dbp*/); 244 245 krb5_error_code 246 hdb_init_db ( 247 krb5_context /*context*/, 248 HDB */*db*/); 249 250 int 251 hdb_key2principal ( 252 krb5_context /*context*/, 253 krb5_data */*key*/, 254 krb5_principal /*p*/); 255 256 krb5_error_code 257 hdb_keytab_create ( 258 krb5_context /*context*/, 259 HDB ** /*db*/, 260 const char */*arg*/); 261 262 krb5_error_code 263 hdb_ldap_create ( 264 krb5_context /*context*/, 265 HDB ** /*db*/, 266 const char */*arg*/); 267 268 krb5_error_code 269 hdb_ldapi_create ( 270 krb5_context /*context*/, 271 HDB ** /*db*/, 272 const char */*arg*/); 273 274 krb5_error_code 275 hdb_list_builtin ( 276 krb5_context /*context*/, 277 char **/*list*/); 278 279 krb5_error_code 280 hdb_lock ( 281 int /*fd*/, 282 int /*operation*/); 283 284 krb5_error_code 285 hdb_mdb_create ( 286 krb5_context /*context*/, 287 HDB **/*db*/, 288 const char */*filename*/); 289 290 krb5_error_code 291 hdb_ndbm_create ( 292 krb5_context /*context*/, 293 HDB **/*db*/, 294 const char */*filename*/); 295 296 krb5_error_code 297 hdb_next_enctype2key ( 298 krb5_context /*context*/, 299 const hdb_entry */*e*/, 300 krb5_enctype /*enctype*/, 301 Key **/*key*/); 302 303 int 304 hdb_principal2key ( 305 krb5_context /*context*/, 306 krb5_const_principal /*p*/, 307 krb5_data */*key*/); 308 309 krb5_error_code 310 hdb_print_entry ( 311 krb5_context /*context*/, 312 HDB */*db*/, 313 hdb_entry_ex */*entry*/, 314 void */*data*/); 315 316 krb5_error_code 317 hdb_process_master_key ( 318 krb5_context /*context*/, 319 int /*kvno*/, 320 krb5_keyblock */*key*/, 321 krb5_enctype /*etype*/, 322 hdb_master_key */*mkey*/); 323 324 krb5_error_code 325 hdb_read_master_key ( 326 krb5_context /*context*/, 327 const char */*filename*/, 328 hdb_master_key */*mkey*/); 329 330 krb5_error_code 331 hdb_replace_extension ( 332 krb5_context /*context*/, 333 hdb_entry */*entry*/, 334 const HDB_extension */*ext*/); 335 336 krb5_error_code 337 hdb_seal_key ( 338 krb5_context /*context*/, 339 HDB */*db*/, 340 Key */*k*/); 341 342 krb5_error_code 343 hdb_seal_key_mkey ( 344 krb5_context /*context*/, 345 Key */*k*/, 346 hdb_master_key /*mkey*/); 347 348 krb5_error_code 349 hdb_seal_keys ( 350 krb5_context /*context*/, 351 HDB */*db*/, 352 hdb_entry */*ent*/); 353 354 krb5_error_code 355 hdb_seal_keys_mkey ( 356 krb5_context /*context*/, 357 hdb_entry */*ent*/, 358 hdb_master_key /*mkey*/); 359 360 krb5_error_code 361 hdb_set_last_modified_by ( 362 krb5_context /*context*/, 363 hdb_entry */*entry*/, 364 krb5_principal /*modby*/, 365 time_t /*modtime*/); 366 367 krb5_error_code 368 hdb_set_master_key ( 369 krb5_context /*context*/, 370 HDB */*db*/, 371 krb5_keyblock */*key*/); 372 373 krb5_error_code 374 hdb_set_master_keyfile ( 375 krb5_context /*context*/, 376 HDB */*db*/, 377 const char */*keyfile*/); 378 379 krb5_error_code 380 hdb_sqlite_create ( 381 krb5_context /*context*/, 382 HDB **/*db*/, 383 const char */*argument*/); 384 385 krb5_error_code 386 hdb_unlock (int /*fd*/); 387 388 krb5_error_code 389 hdb_unseal_key ( 390 krb5_context /*context*/, 391 HDB */*db*/, 392 Key */*k*/); 393 394 krb5_error_code 395 hdb_unseal_key_mkey ( 396 krb5_context /*context*/, 397 Key */*k*/, 398 hdb_master_key /*mkey*/); 399 400 krb5_error_code 401 hdb_unseal_keys ( 402 krb5_context /*context*/, 403 HDB */*db*/, 404 hdb_entry */*ent*/); 405 406 krb5_error_code 407 hdb_unseal_keys_kvno ( 408 krb5_context /*context*/, 409 HDB */*db*/, 410 krb5_kvno /*kvno*/, 411 hdb_entry */*ent*/); 412 413 krb5_error_code 414 hdb_unseal_keys_mkey ( 415 krb5_context /*context*/, 416 hdb_entry */*ent*/, 417 hdb_master_key /*mkey*/); 418 419 int 420 hdb_value2entry ( 421 krb5_context /*context*/, 422 krb5_data */*value*/, 423 hdb_entry */*ent*/); 424 425 int 426 hdb_value2entry_alias ( 427 krb5_context /*context*/, 428 krb5_data */*value*/, 429 hdb_entry_alias */*ent*/); 430 431 krb5_error_code 432 hdb_write_master_key ( 433 krb5_context /*context*/, 434 const char */*filename*/, 435 hdb_master_key /*mkey*/); 436 437 #ifdef __cplusplus 438 } 439 #endif 440 441 #endif /* __hdb_protos_h__ */ 442