Lines Matching full:handle

26 krb5_error_code kdb_init_master(kadm5_server_handle_t handle,  in kdb_init_master()  argument
38 if ((ret = krb5_get_default_realm(handle->context, &realm))) in kdb_init_master()
44 krb5_free_principal(handle->context, master_princ); in kdb_init_master()
46 if ((ret = krb5_db_setup_mkey_name(handle->context, in kdb_init_master()
47 handle->params.mkey_name, in kdb_init_master()
51 krb5_free_keyblock_contents(handle->context, &master_keyblock); in kdb_init_master()
52 master_keyblock.enctype = handle->params.enctype; in kdb_init_master()
59 ret = krb5_db_fetch_mkey(handle->context, master_princ, in kdb_init_master()
62 handle->params.stash_file, in kdb_init_master()
70 ret = krb5_db_fetch_mkey_list(handle->context, master_princ, in kdb_init_master()
73 krb5_db_fini(handle->context); in kdb_init_master()
84 kdb_get_active_mkey(kadm5_server_handle_t handle, krb5_kvno *act_kvno_out, in kdb_get_active_mkey() argument
90 ret = krb5_dbe_fetch_act_key_list(handle->context, master_princ, in kdb_get_active_mkey()
94 ret = krb5_dbe_find_act_mkey(handle->context, active_mkey_list, in kdb_get_active_mkey()
96 krb5_dbe_free_actkvno_list(handle->context, active_mkey_list); in kdb_get_active_mkey()
107 * handle (r) kadm5 api server handle
112 krb5_error_code kdb_init_hist(kadm5_server_handle_t handle, char *r) in kdb_init_hist() argument
118 if ((ret = krb5_get_default_realm(handle->context, &realm))) in kdb_init_hist()
129 krb5_free_principal(handle->context, hist_princ); in kdb_init_hist()
131 if ((ret = krb5_parse_name(handle->context, hist_name, &hist_princ))) in kdb_init_hist()
142 create_hist(kadm5_server_handle_t handle) in create_hist() argument
154 ks[0].ks_enctype = handle->params.enctype; in create_hist()
156 ret = kadm5_create_principal_3(handle, &ent, mask, 1, ks, NULL); in create_hist()
162 return kadm5_randkey_principal_3(handle, ent.principal, 0, 1, ks, in create_hist()
174 kdb_get_hist_key(kadm5_server_handle_t handle, krb5_keyblock **keyblocks_out, in kdb_get_hist_key() argument
183 ret = kdb_get_entry(handle, hist_princ, &kdb, NULL); in kdb_get_hist_key()
185 ret = create_hist(handle); in kdb_get_hist_key()
188 ret = kdb_get_entry(handle, hist_princ, &kdb, NULL); in kdb_get_hist_key()
195 k5_setmsg(handle->context, ret, in kdb_get_hist_key()
200 ret = krb5_dbe_find_mkey(handle->context, kdb, &mkey); in kdb_get_hist_key()
208 ret = krb5_dbe_decrypt_key_data(handle->context, mkey, in kdb_get_hist_key()
220 kdb_free_entry(handle, kdb, NULL); in kdb_get_hist_key()
221 kdb_free_keyblocks(handle, kblist); in kdb_get_hist_key()
227 kdb_free_keyblocks(kadm5_server_handle_t handle, krb5_keyblock *keyblocks) in kdb_free_keyblocks() argument
234 krb5_free_keyblock_contents(handle->context, kb); in kdb_free_keyblocks()
246 * handle (r) the server_handle
257 kdb_get_entry(kadm5_server_handle_t handle, in kdb_get_entry() argument
268 ret = krb5_db_get_principal(handle->context, principal, 0, &kdb); in kdb_get_entry()
283 if ((ret = krb5_dbe_lookup_tl_data(handle->context, kdb, &tl_data)) in kdb_get_entry()
301 krb5_db_free_principal(handle->context, kdb); in kdb_get_entry()
318 * handle (r) the server_handle
327 kdb_free_entry(kadm5_server_handle_t handle, in kdb_free_entry() argument
334 krb5_db_free_principal(handle->context, kdb); in kdb_free_entry()
353 * handle (r) the server_handle
364 kdb_put_entry(kadm5_server_handle_t handle, in kdb_put_entry() argument
372 ret = krb5_timeofday(handle->context, &now); in kdb_put_entry()
376 ret = krb5_dbe_update_mod_princ_data(handle->context, kdb, now, in kdb_put_entry()
377 handle->current_caller); in kdb_put_entry()
390 ret = krb5_dbe_update_tl_data(handle->context, kdb, &tl_data); in kdb_put_entry()
400 ret = krb5_db_put_principal(handle->context, kdb); in kdb_put_entry()
408 kdb_delete_entry(kadm5_server_handle_t handle, krb5_principal name) in kdb_delete_entry() argument
412 ret = krb5_db_delete_principal(handle->context, name); in kdb_delete_entry()
432 kdb_iter_entry(kadm5_server_handle_t handle, char *match_entry, in kdb_iter_entry() argument
441 ret = krb5_db_iterate(handle->context, match_entry, kdb_iter_func, &id, 0); in kdb_iter_entry()