1 /* $NetBSD: kadm5-private.h,v 1.3 2023/06/19 21:41:44 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 kadm5_ret_t 327 kadm5_log_goto_end ( 328 kadm5_server_context */*server_context*/, 329 krb5_storage */*sp*/); 330 331 kadm5_ret_t 332 kadm5_log_goto_first ( 333 kadm5_server_context */*server_context*/, 334 krb5_storage */*sp*/); 335 336 kadm5_ret_t 337 kadm5_log_init (kadm5_server_context */*server_context*/); 338 339 kadm5_ret_t 340 kadm5_log_init_nb (kadm5_server_context */*server_context*/); 341 342 kadm5_ret_t 343 kadm5_log_init_nolock (kadm5_server_context */*server_context*/); 344 345 kadm5_ret_t 346 kadm5_log_init_sharedlock ( 347 kadm5_server_context */*server_context*/, 348 int /*lock_flags*/); 349 350 kadm5_ret_t 351 kadm5_log_modify ( 352 kadm5_server_context */*context*/, 353 hdb_entry */*entry*/, 354 uint32_t /*mask*/); 355 356 kadm5_ret_t 357 kadm5_log_next ( 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_nop ( 367 kadm5_server_context */*context*/, 368 enum kadm_nop_type /*nop_type*/); 369 370 kadm5_ret_t 371 kadm5_log_previous ( 372 krb5_context /*context*/, 373 krb5_storage */*sp*/, 374 uint32_t */*verp*/, 375 time_t */*tstampp*/, 376 enum kadm_ops */*opp*/, 377 uint32_t */*lenp*/); 378 379 kadm5_ret_t 380 kadm5_log_recover ( 381 kadm5_server_context */*context*/, 382 enum kadm_recover_mode /*mode*/); 383 384 kadm5_ret_t 385 kadm5_log_reinit ( 386 kadm5_server_context */*server_context*/, 387 uint32_t /*vno*/); 388 389 kadm5_ret_t 390 kadm5_log_rename ( 391 kadm5_server_context */*context*/, 392 krb5_principal /*source*/, 393 hdb_entry */*entry*/); 394 395 kadm5_ret_t 396 kadm5_log_replay ( 397 kadm5_server_context */*context*/, 398 enum kadm_ops /*op*/, 399 uint32_t /*ver*/, 400 uint32_t /*len*/, 401 krb5_storage */*sp*/); 402 403 kadm5_ret_t 404 kadm5_log_set_version ( 405 kadm5_server_context */*context*/, 406 uint32_t /*vno*/); 407 408 void 409 kadm5_log_signal_master (kadm5_server_context */*context*/); 410 411 const char * 412 kadm5_log_signal_socket (krb5_context /*context*/); 413 414 kadm5_ret_t 415 kadm5_log_signal_socket_info ( 416 krb5_context /*context*/, 417 int /*server_end*/, 418 struct addrinfo **/*ret_addrs*/); 419 420 kadm5_ret_t 421 kadm5_log_truncate ( 422 kadm5_server_context */*context*/, 423 size_t /*keep*/, 424 size_t /*maxbytes*/); 425 426 kadm5_ret_t 427 kadm5_s_chpass_principal ( 428 void */*server_handle*/, 429 krb5_principal /*princ*/, 430 int /*keepold*/, 431 int /*n_ks_tuple*/, 432 krb5_key_salt_tuple */*ks_tuple*/, 433 const char */*password*/); 434 435 kadm5_ret_t 436 kadm5_s_chpass_principal_cond ( 437 void */*server_handle*/, 438 krb5_principal /*princ*/, 439 int /*keepold*/, 440 const char */*password*/); 441 442 kadm5_ret_t 443 kadm5_s_chpass_principal_with_key ( 444 void */*server_handle*/, 445 krb5_principal /*princ*/, 446 int /*keepold*/, 447 int /*n_key_data*/, 448 krb5_key_data */*key_data*/); 449 450 kadm5_ret_t 451 kadm5_s_create_principal ( 452 void */*server_handle*/, 453 kadm5_principal_ent_t /*princ*/, 454 uint32_t /*mask*/, 455 int /*n_ks_tuple*/, 456 krb5_key_salt_tuple */*ks_tuple*/, 457 const char */*password*/); 458 459 kadm5_ret_t 460 kadm5_s_create_principal_with_key ( 461 void */*server_handle*/, 462 kadm5_principal_ent_t /*princ*/, 463 uint32_t /*mask*/); 464 465 kadm5_ret_t 466 kadm5_s_delete_principal ( 467 void */*server_handle*/, 468 krb5_principal /*princ*/); 469 470 kadm5_ret_t 471 kadm5_s_destroy (void */*server_handle*/); 472 473 kadm5_ret_t 474 kadm5_s_flush (void */*server_handle*/); 475 476 kadm5_ret_t 477 kadm5_s_get_principal ( 478 void */*server_handle*/, 479 krb5_principal /*princ*/, 480 kadm5_principal_ent_t /*out*/, 481 uint32_t /*mask*/); 482 483 kadm5_ret_t 484 kadm5_s_get_principals ( 485 void */*server_handle*/, 486 const char */*expression*/, 487 char ***/*princs*/, 488 int */*count*/); 489 490 kadm5_ret_t 491 kadm5_s_get_privs ( 492 void */*server_handle*/, 493 uint32_t */*privs*/); 494 495 kadm5_ret_t 496 kadm5_s_init_with_creds ( 497 const char */*client_name*/, 498 krb5_ccache /*ccache*/, 499 const char */*service_name*/, 500 kadm5_config_params */*realm_params*/, 501 unsigned long /*struct_version*/, 502 unsigned long /*api_version*/, 503 void **/*server_handle*/); 504 505 kadm5_ret_t 506 kadm5_s_init_with_creds_ctx ( 507 krb5_context /*context*/, 508 const char */*client_name*/, 509 krb5_ccache /*ccache*/, 510 const char */*service_name*/, 511 kadm5_config_params */*realm_params*/, 512 unsigned long /*struct_version*/, 513 unsigned long /*api_version*/, 514 void **/*server_handle*/); 515 516 kadm5_ret_t 517 kadm5_s_init_with_password ( 518 const char */*client_name*/, 519 const char */*password*/, 520 const char */*service_name*/, 521 kadm5_config_params */*realm_params*/, 522 unsigned long /*struct_version*/, 523 unsigned long /*api_version*/, 524 void **/*server_handle*/); 525 526 kadm5_ret_t 527 kadm5_s_init_with_password_ctx ( 528 krb5_context /*context*/, 529 const char */*client_name*/, 530 const char */*password*/, 531 const char */*service_name*/, 532 kadm5_config_params */*realm_params*/, 533 unsigned long /*struct_version*/, 534 unsigned long /*api_version*/, 535 void **/*server_handle*/); 536 537 kadm5_ret_t 538 kadm5_s_init_with_skey ( 539 const char */*client_name*/, 540 const char */*keytab*/, 541 const char */*service_name*/, 542 kadm5_config_params */*realm_params*/, 543 unsigned long /*struct_version*/, 544 unsigned long /*api_version*/, 545 void **/*server_handle*/); 546 547 kadm5_ret_t 548 kadm5_s_init_with_skey_ctx ( 549 krb5_context /*context*/, 550 const char */*client_name*/, 551 const char */*keytab*/, 552 const char */*service_name*/, 553 kadm5_config_params */*realm_params*/, 554 unsigned long /*struct_version*/, 555 unsigned long /*api_version*/, 556 void **/*server_handle*/); 557 558 kadm5_ret_t 559 kadm5_s_modify_principal ( 560 void */*server_handle*/, 561 kadm5_principal_ent_t /*princ*/, 562 uint32_t /*mask*/); 563 564 kadm5_ret_t 565 kadm5_s_randkey_principal ( 566 void */*server_handle*/, 567 krb5_principal /*princ*/, 568 krb5_boolean /*keepold*/, 569 int /*n_ks_tuple*/, 570 krb5_key_salt_tuple */*ks_tuple*/, 571 krb5_keyblock **/*new_keys*/, 572 int */*n_keys*/); 573 574 kadm5_ret_t 575 kadm5_s_rename_principal ( 576 void */*server_handle*/, 577 krb5_principal /*source*/, 578 krb5_principal /*target*/); 579 580 kadm5_ret_t 581 kadm5_s_setkey_principal_3 ( 582 void */*server_handle*/, 583 krb5_principal /*princ*/, 584 krb5_boolean /*keepold*/, 585 int /*n_ks_tuple*/, 586 krb5_key_salt_tuple */*ks_tuple*/, 587 krb5_keyblock */*keyblocks*/, 588 int /*n_keys*/); 589 590 #endif /* __kadm5_private_h__ */ 591