1 /* $NetBSD: kadm5-private.h,v 1.2 2019/12/15 22:50:50 christos Exp $ */ 2 3 /* This is a generated file */ 4 #ifndef __kadm5_private_h__ 5 #define __kadm5_private_h__ 6 7 #include <stdarg.h> 8 9 kadm5_ret_t 10 _kadm5_acl_check_permission ( 11 kadm5_server_context */*context*/, 12 unsigned /*op*/, 13 krb5_const_principal /*princ*/); 14 15 kadm5_ret_t 16 _kadm5_acl_init (kadm5_server_context */*context*/); 17 18 kadm5_ret_t 19 _kadm5_bump_pw_expire ( 20 kadm5_server_context */*context*/, 21 hdb_entry */*ent*/); 22 23 krb5_error_code 24 _kadm5_c_get_cred_cache ( 25 krb5_context /*context*/, 26 const char */*client_name*/, 27 const char */*server_name*/, 28 const char */*password*/, 29 krb5_prompter_fct /*prompter*/, 30 const char */*keytab*/, 31 krb5_ccache /*ccache*/, 32 krb5_ccache */*ret_cache*/); 33 34 kadm5_ret_t 35 _kadm5_c_init_context ( 36 kadm5_client_context **/*ctx*/, 37 kadm5_config_params */*params*/, 38 krb5_context /*context*/); 39 40 kadm5_ret_t 41 _kadm5_client_recv ( 42 kadm5_client_context */*context*/, 43 krb5_data */*reply*/); 44 45 kadm5_ret_t 46 _kadm5_client_send ( 47 kadm5_client_context */*context*/, 48 krb5_storage */*sp*/); 49 50 kadm5_ret_t 51 _kadm5_connect (void */*handle*/); 52 53 kadm5_ret_t 54 _kadm5_error_code (kadm5_ret_t /*code*/); 55 56 int 57 _kadm5_exists_keys_hist ( 58 Key */*keys1*/, 59 int /*len1*/, 60 HDB_Ext_KeySet */*hist_keys*/); 61 62 void 63 _kadm5_free_keys ( 64 krb5_context /*context*/, 65 int /*len*/, 66 Key */*keys*/); 67 68 void 69 _kadm5_init_keys ( 70 Key */*keys*/, 71 int /*len*/); 72 73 kadm5_ret_t 74 _kadm5_marshal_params ( 75 krb5_context /*context*/, 76 kadm5_config_params */*params*/, 77 krb5_data */*out*/); 78 79 kadm5_ret_t 80 _kadm5_privs_to_string ( 81 uint32_t /*privs*/, 82 char */*string*/, 83 size_t /*len*/); 84 85 HDB * 86 _kadm5_s_get_db (void */*server_handle*/); 87 88 kadm5_ret_t 89 _kadm5_s_init_context ( 90 kadm5_server_context **/*ctx*/, 91 kadm5_config_params */*params*/, 92 krb5_context /*context*/); 93 94 kadm5_ret_t 95 _kadm5_set_keys ( 96 kadm5_server_context */*context*/, 97 hdb_entry */*ent*/, 98 int /*n_ks_tuple*/, 99 krb5_key_salt_tuple */*ks_tuple*/, 100 const char */*password*/); 101 102 kadm5_ret_t 103 _kadm5_set_keys2 ( 104 kadm5_server_context */*context*/, 105 hdb_entry */*ent*/, 106 int16_t /*n_key_data*/, 107 krb5_key_data */*key_data*/); 108 109 kadm5_ret_t 110 _kadm5_set_keys3 ( 111 kadm5_server_context */*context*/, 112 hdb_entry */*ent*/, 113 int /*n_keys*/, 114 krb5_keyblock */*keyblocks*/); 115 116 kadm5_ret_t 117 _kadm5_set_keys_randomly ( 118 kadm5_server_context */*context*/, 119 hdb_entry */*ent*/, 120 int /*n_ks_tuple*/, 121 krb5_key_salt_tuple */*ks_tuple*/, 122 krb5_keyblock **/*new_keys*/, 123 int */*n_keys*/); 124 125 kadm5_ret_t 126 _kadm5_set_modifier ( 127 kadm5_server_context */*context*/, 128 hdb_entry */*ent*/); 129 130 kadm5_ret_t 131 _kadm5_setup_entry ( 132 kadm5_server_context */*context*/, 133 hdb_entry_ex */*ent*/, 134 uint32_t /*mask*/, 135 kadm5_principal_ent_t /*princ*/, 136 uint32_t /*princ_mask*/, 137 kadm5_principal_ent_t /*def*/, 138 uint32_t /*def_mask*/); 139 140 kadm5_ret_t 141 _kadm5_string_to_privs ( 142 const char */*s*/, 143 uint32_t* /*privs*/); 144 145 kadm5_ret_t 146 _kadm5_unmarshal_params ( 147 krb5_context /*context*/, 148 krb5_data */*in*/, 149 kadm5_config_params */*params*/); 150 151 kadm5_ret_t 152 kadm5_c_chpass_principal ( 153 void */*server_handle*/, 154 krb5_principal /*princ*/, 155 int /*keepold*/, 156 int /*n_ks_tuple*/, 157 krb5_key_salt_tuple */*ks_tuple*/, 158 const char */*password*/); 159 160 kadm5_ret_t 161 kadm5_c_chpass_principal_with_key ( 162 void */*server_handle*/, 163 krb5_principal /*princ*/, 164 int /*keepold*/, 165 int /*n_key_data*/, 166 krb5_key_data */*key_data*/); 167 168 kadm5_ret_t 169 kadm5_c_create_principal ( 170 void */*server_handle*/, 171 kadm5_principal_ent_t /*princ*/, 172 uint32_t /*mask*/, 173 int /*n_ks_tuple*/, 174 krb5_key_salt_tuple */*ks_tuple*/, 175 const char */*password*/); 176 177 kadm5_ret_t 178 kadm5_c_delete_principal ( 179 void */*server_handle*/, 180 krb5_principal /*princ*/); 181 182 kadm5_ret_t 183 kadm5_c_destroy (void */*server_handle*/); 184 185 kadm5_ret_t 186 kadm5_c_flush (void */*server_handle*/); 187 188 kadm5_ret_t 189 kadm5_c_get_principal ( 190 void */*server_handle*/, 191 krb5_principal /*princ*/, 192 kadm5_principal_ent_t /*out*/, 193 uint32_t /*mask*/); 194 195 kadm5_ret_t 196 kadm5_c_get_principals ( 197 void */*server_handle*/, 198 const char */*expression*/, 199 char ***/*princs*/, 200 int */*count*/); 201 202 kadm5_ret_t 203 kadm5_c_get_privs ( 204 void */*server_handle*/, 205 uint32_t */*privs*/); 206 207 kadm5_ret_t 208 kadm5_c_init_with_creds ( 209 const char */*client_name*/, 210 krb5_ccache /*ccache*/, 211 const char */*service_name*/, 212 kadm5_config_params */*realm_params*/, 213 unsigned long /*struct_version*/, 214 unsigned long /*api_version*/, 215 void **/*server_handle*/); 216 217 kadm5_ret_t 218 kadm5_c_init_with_creds_ctx ( 219 krb5_context /*context*/, 220 const char */*client_name*/, 221 krb5_ccache /*ccache*/, 222 const char */*service_name*/, 223 kadm5_config_params */*realm_params*/, 224 unsigned long /*struct_version*/, 225 unsigned long /*api_version*/, 226 void **/*server_handle*/); 227 228 kadm5_ret_t 229 kadm5_c_init_with_password ( 230 const char */*client_name*/, 231 const char */*password*/, 232 const char */*service_name*/, 233 kadm5_config_params */*realm_params*/, 234 unsigned long /*struct_version*/, 235 unsigned long /*api_version*/, 236 void **/*server_handle*/); 237 238 kadm5_ret_t 239 kadm5_c_init_with_password_ctx ( 240 krb5_context /*context*/, 241 const char */*client_name*/, 242 const char */*password*/, 243 const char */*service_name*/, 244 kadm5_config_params */*realm_params*/, 245 unsigned long /*struct_version*/, 246 unsigned long /*api_version*/, 247 void **/*server_handle*/); 248 249 kadm5_ret_t 250 kadm5_c_init_with_skey ( 251 const char */*client_name*/, 252 const char */*keytab*/, 253 const char */*service_name*/, 254 kadm5_config_params */*realm_params*/, 255 unsigned long /*struct_version*/, 256 unsigned long /*api_version*/, 257 void **/*server_handle*/); 258 259 kadm5_ret_t 260 kadm5_c_init_with_skey_ctx ( 261 krb5_context /*context*/, 262 const char */*client_name*/, 263 const char */*keytab*/, 264 const char */*service_name*/, 265 kadm5_config_params */*realm_params*/, 266 unsigned long /*struct_version*/, 267 unsigned long /*api_version*/, 268 void **/*server_handle*/); 269 270 kadm5_ret_t 271 kadm5_c_modify_principal ( 272 void */*server_handle*/, 273 kadm5_principal_ent_t /*princ*/, 274 uint32_t /*mask*/); 275 276 kadm5_ret_t 277 kadm5_c_randkey_principal ( 278 void */*server_handle*/, 279 krb5_principal /*princ*/, 280 krb5_boolean /*keepold*/, 281 int /*n_ks_tuple*/, 282 krb5_key_salt_tuple */*ks_tuple*/, 283 krb5_keyblock **/*new_keys*/, 284 int */*n_keys*/); 285 286 kadm5_ret_t 287 kadm5_c_rename_principal ( 288 void */*server_handle*/, 289 krb5_principal /*source*/, 290 krb5_principal /*target*/); 291 292 kadm5_ret_t 293 kadm5_log_create ( 294 kadm5_server_context */*context*/, 295 hdb_entry */*entry*/); 296 297 kadm5_ret_t 298 kadm5_log_delete ( 299 kadm5_server_context */*context*/, 300 krb5_principal /*princ*/); 301 302 kadm5_ret_t 303 kadm5_log_end (kadm5_server_context */*server_context*/); 304 305 kadm5_ret_t 306 kadm5_log_foreach ( 307 kadm5_server_context */*context*/, 308 enum kadm_iter_opts /*iter_opts*/, 309 off_t */*off_lastp*/, 310 kadm5_ret_t (*/*func*/)(kadm5_server_context *server_context, uint32_t ver, time_t timestamp, enum kadm_ops op, uint32_t len, krb5_storage *sp, void *ctx), 311 void */*ctx*/); 312 313 kadm5_ret_t 314 kadm5_log_get_version ( 315 kadm5_server_context */*server_context*/, 316 uint32_t */*ver*/); 317 318 kadm5_ret_t 319 kadm5_log_get_version_fd ( 320 kadm5_server_context */*server_context*/, 321 int /*fd*/, 322 int /*which*/, 323 uint32_t */*ver*/, 324 uint32_t */*tstamp*/); 325 326 krb5_storage * 327 kadm5_log_goto_end ( 328 kadm5_server_context */*server_context*/, 329 int /*fd*/); 330 331 kadm5_ret_t 332 kadm5_log_init (kadm5_server_context */*server_context*/); 333 334 kadm5_ret_t 335 kadm5_log_init_nb (kadm5_server_context */*server_context*/); 336 337 kadm5_ret_t 338 kadm5_log_init_nolock (kadm5_server_context */*server_context*/); 339 340 kadm5_ret_t 341 kadm5_log_init_sharedlock ( 342 kadm5_server_context */*server_context*/, 343 int /*lock_flags*/); 344 345 kadm5_ret_t 346 kadm5_log_modify ( 347 kadm5_server_context */*context*/, 348 hdb_entry */*entry*/, 349 uint32_t /*mask*/); 350 351 kadm5_ret_t 352 kadm5_log_nop ( 353 kadm5_server_context */*context*/, 354 enum kadm_nop_type /*nop_type*/); 355 356 kadm5_ret_t 357 kadm5_log_previous ( 358 krb5_context /*context*/, 359 krb5_storage */*sp*/, 360 uint32_t */*verp*/, 361 time_t */*tstampp*/, 362 enum kadm_ops */*opp*/, 363 uint32_t */*lenp*/); 364 365 kadm5_ret_t 366 kadm5_log_recover ( 367 kadm5_server_context */*context*/, 368 enum kadm_recover_mode /*mode*/); 369 370 kadm5_ret_t 371 kadm5_log_reinit ( 372 kadm5_server_context */*server_context*/, 373 uint32_t /*vno*/); 374 375 kadm5_ret_t 376 kadm5_log_rename ( 377 kadm5_server_context */*context*/, 378 krb5_principal /*source*/, 379 hdb_entry */*entry*/); 380 381 kadm5_ret_t 382 kadm5_log_replay ( 383 kadm5_server_context */*context*/, 384 enum kadm_ops /*op*/, 385 uint32_t /*ver*/, 386 uint32_t /*len*/, 387 krb5_storage */*sp*/); 388 389 kadm5_ret_t 390 kadm5_log_set_version ( 391 kadm5_server_context */*context*/, 392 uint32_t /*vno*/); 393 394 void 395 kadm5_log_signal_master (kadm5_server_context */*context*/); 396 397 const char * 398 kadm5_log_signal_socket (krb5_context /*context*/); 399 400 kadm5_ret_t 401 kadm5_log_signal_socket_info ( 402 krb5_context /*context*/, 403 int /*server_end*/, 404 struct addrinfo **/*ret_addrs*/); 405 406 kadm5_ret_t 407 kadm5_log_truncate ( 408 kadm5_server_context */*context*/, 409 size_t /*keep*/, 410 size_t /*maxbytes*/); 411 412 kadm5_ret_t 413 kadm5_s_chpass_principal ( 414 void */*server_handle*/, 415 krb5_principal /*princ*/, 416 int /*keepold*/, 417 int /*n_ks_tuple*/, 418 krb5_key_salt_tuple */*ks_tuple*/, 419 const char */*password*/); 420 421 kadm5_ret_t 422 kadm5_s_chpass_principal_cond ( 423 void */*server_handle*/, 424 krb5_principal /*princ*/, 425 int /*keepold*/, 426 const char */*password*/); 427 428 kadm5_ret_t 429 kadm5_s_chpass_principal_with_key ( 430 void */*server_handle*/, 431 krb5_principal /*princ*/, 432 int /*keepold*/, 433 int /*n_key_data*/, 434 krb5_key_data */*key_data*/); 435 436 kadm5_ret_t 437 kadm5_s_create_principal ( 438 void */*server_handle*/, 439 kadm5_principal_ent_t /*princ*/, 440 uint32_t /*mask*/, 441 int /*n_ks_tuple*/, 442 krb5_key_salt_tuple */*ks_tuple*/, 443 const char */*password*/); 444 445 kadm5_ret_t 446 kadm5_s_create_principal_with_key ( 447 void */*server_handle*/, 448 kadm5_principal_ent_t /*princ*/, 449 uint32_t /*mask*/); 450 451 kadm5_ret_t 452 kadm5_s_delete_principal ( 453 void */*server_handle*/, 454 krb5_principal /*princ*/); 455 456 kadm5_ret_t 457 kadm5_s_destroy (void */*server_handle*/); 458 459 kadm5_ret_t 460 kadm5_s_flush (void */*server_handle*/); 461 462 kadm5_ret_t 463 kadm5_s_get_principal ( 464 void */*server_handle*/, 465 krb5_principal /*princ*/, 466 kadm5_principal_ent_t /*out*/, 467 uint32_t /*mask*/); 468 469 kadm5_ret_t 470 kadm5_s_get_principals ( 471 void */*server_handle*/, 472 const char */*expression*/, 473 char ***/*princs*/, 474 int */*count*/); 475 476 kadm5_ret_t 477 kadm5_s_get_privs ( 478 void */*server_handle*/, 479 uint32_t */*privs*/); 480 481 kadm5_ret_t 482 kadm5_s_init_with_creds ( 483 const char */*client_name*/, 484 krb5_ccache /*ccache*/, 485 const char */*service_name*/, 486 kadm5_config_params */*realm_params*/, 487 unsigned long /*struct_version*/, 488 unsigned long /*api_version*/, 489 void **/*server_handle*/); 490 491 kadm5_ret_t 492 kadm5_s_init_with_creds_ctx ( 493 krb5_context /*context*/, 494 const char */*client_name*/, 495 krb5_ccache /*ccache*/, 496 const char */*service_name*/, 497 kadm5_config_params */*realm_params*/, 498 unsigned long /*struct_version*/, 499 unsigned long /*api_version*/, 500 void **/*server_handle*/); 501 502 kadm5_ret_t 503 kadm5_s_init_with_password ( 504 const char */*client_name*/, 505 const char */*password*/, 506 const char */*service_name*/, 507 kadm5_config_params */*realm_params*/, 508 unsigned long /*struct_version*/, 509 unsigned long /*api_version*/, 510 void **/*server_handle*/); 511 512 kadm5_ret_t 513 kadm5_s_init_with_password_ctx ( 514 krb5_context /*context*/, 515 const char */*client_name*/, 516 const char */*password*/, 517 const char */*service_name*/, 518 kadm5_config_params */*realm_params*/, 519 unsigned long /*struct_version*/, 520 unsigned long /*api_version*/, 521 void **/*server_handle*/); 522 523 kadm5_ret_t 524 kadm5_s_init_with_skey ( 525 const char */*client_name*/, 526 const char */*keytab*/, 527 const char */*service_name*/, 528 kadm5_config_params */*realm_params*/, 529 unsigned long /*struct_version*/, 530 unsigned long /*api_version*/, 531 void **/*server_handle*/); 532 533 kadm5_ret_t 534 kadm5_s_init_with_skey_ctx ( 535 krb5_context /*context*/, 536 const char */*client_name*/, 537 const char */*keytab*/, 538 const char */*service_name*/, 539 kadm5_config_params */*realm_params*/, 540 unsigned long /*struct_version*/, 541 unsigned long /*api_version*/, 542 void **/*server_handle*/); 543 544 kadm5_ret_t 545 kadm5_s_modify_principal ( 546 void */*server_handle*/, 547 kadm5_principal_ent_t /*princ*/, 548 uint32_t /*mask*/); 549 550 kadm5_ret_t 551 kadm5_s_randkey_principal ( 552 void */*server_handle*/, 553 krb5_principal /*princ*/, 554 krb5_boolean /*keepold*/, 555 int /*n_ks_tuple*/, 556 krb5_key_salt_tuple */*ks_tuple*/, 557 krb5_keyblock **/*new_keys*/, 558 int */*n_keys*/); 559 560 kadm5_ret_t 561 kadm5_s_rename_principal ( 562 void */*server_handle*/, 563 krb5_principal /*source*/, 564 krb5_principal /*target*/); 565 566 kadm5_ret_t 567 kadm5_s_setkey_principal_3 ( 568 void */*server_handle*/, 569 krb5_principal /*princ*/, 570 krb5_boolean /*keepold*/, 571 int /*n_ks_tuple*/, 572 krb5_key_salt_tuple */*ks_tuple*/, 573 krb5_keyblock */*keyblocks*/, 574 int /*n_keys*/); 575 576 #endif /* __kadm5_private_h__ */ 577