Lines Matching refs:status

187     krb5_error_code status = 0;
195 status = profile_get_string(kcontext->profile,
205 if (status) {
221 krb5_error_code status = 0;
226 status = profile_get_string(kcontext->profile,
235 if (status)
240 status = profile_get_string(kcontext->profile, KDB_MODULE_SECTION, value,
246 if (status) {
296 krb5_error_code status;
321 status = lib->vftabl.init_library();
322 if (status)
330 return status;
341 krb5_error_code status = 0;
367 status = profile_get_values(kcontext->profile, dbpath_names, &profpath);
368 if (status != 0 && status != PROF_NO_RELATION)
377 status = ENOMEM;
383 status = 0;
385 if ((status = krb5int_open_plugin_dirs ((const char **) path,
388 const char *err_str = krb5_get_error_message(kcontext, status);
389 status = KRB5_KDB_DBTYPE_NOTFOUND;
390 krb5_set_error_message (kcontext, status,
396 if ((status = krb5int_get_plugin_dir_data (&(*lib)->dl_dir_handle, "kdb_function_table",
398 const char *err_str = krb5_get_error_message(kcontext, status);
399 status = KRB5_KDB_DBTYPE_INIT;
400 krb5_set_error_message (kcontext, status,
408 status = KRB5_KDB_DBTYPE_NOTFOUND;
409 krb5_set_error_message (kcontext, status,
418 if ((status = (*lib)->vftabl.init_library()))
426 if (status && *lib) {
432 return status;
441 krb5_error_code status = 0;
451 if ((status = kdb_lock_list()) != 0)
466 status = kdb_load_library(kcontext, lib_name, lib);
467 if (status)
485 return status;
491 krb5_error_code status = 0;
494 if ((status = kdb_lock_list()) != 0)
501 status = lib->vftabl.fini_library();
502 if (status)
523 return status;
530 krb5_error_code status = 0;
536 status = ENOMEM;
542 status = KRB5_KDB_DBTYPE_NOTFOUND;
546 status = kdb_find_library(kcontext, library, &lib);
547 if (status)
556 if (status) {
562 return status;
568 krb5_error_code status = 0;
570 status = kdb_free_library(kcontext->dal_handle->lib_handle);
571 if (status)
572 return status;
603 krb5_error_code status;
607 status = krb5_db_setup_lib_handle(kcontext);
608 if (status)
609 return status;
621 krb5_error_code status = 0;
627 status = KRB5_KDB_SERVER_INTERNAL_ERR;
628 krb5_set_error_message (kcontext, status,
634 status = get_vftabl(kcontext, &v);
635 if (status)
638 status = v->init_module(kcontext, section, db_args, mode);
639 get_errmsg(kcontext, status);
644 return status;
657 krb5_error_code status = 0;
663 status = KRB5_KDB_SERVER_INTERNAL_ERR;
664 krb5_set_error_message (kcontext, status,
670 status = get_vftabl(kcontext, &v);
671 if (status)
674 status = KRB5_KDB_DBTYPE_NOSUP;
677 status = v->db_create(kcontext, section, db_args);
678 get_errmsg(kcontext, status);
683 return status;
689 krb5_error_code status = 0;
698 status = v->fini_module(kcontext);
699 get_errmsg(kcontext, status);
701 if (status)
702 return status;
710 krb5_error_code status = 0;
716 status = KRB5_KDB_SERVER_INTERNAL_ERR;
717 krb5_set_error_message (kcontext, status,
723 status = get_vftabl(kcontext, &v);
724 if (status)
727 status = KRB5_KDB_DBTYPE_NOSUP;
730 status = v->db_destroy(kcontext, section, db_args);
731 get_errmsg(kcontext, status);
736 return status;
742 krb5_error_code status = 0;
745 status = get_vftabl(kcontext, &v);
746 if (status)
747 return status;
750 status = v->db_get_age(kcontext, db_name, t);
751 get_errmsg(kcontext, status);
752 return status;
758 krb5_error_code status = 0;
761 status = get_vftabl(kcontext, &v);
762 if (status)
763 return status;
766 status = v->db_set_option(kcontext, option, value);
767 get_errmsg(kcontext, status);
768 return status;
774 krb5_error_code status = 0;
777 status = get_vftabl(kcontext, &v);
778 if (status)
779 return status;
782 status = v->db_lock(kcontext, lock_mode);
783 get_errmsg(kcontext, status);
784 return status;
790 krb5_error_code status = 0;
793 status = get_vftabl(kcontext, &v);
794 if (status)
795 return status;
798 status = v->db_unlock(kcontext);
799 get_errmsg(kcontext, status);
800 return status;
809 krb5_error_code status = 0;
812 status = get_vftabl(kcontext, &v);
813 if (status)
814 return status;
817 status = v->db_get_principal(kcontext, search_for, 0, entries, nentries,
819 get_errmsg(kcontext, status);
820 return status;
830 krb5_error_code status = 0;
833 status = get_vftabl(kcontext, &v);
834 if (status)
835 return status;
838 status = v->db_get_principal(kcontext, search_for,
840 get_errmsg(kcontext, status);
841 return status;
847 krb5_error_code status = 0;
850 status = get_vftabl(kcontext, &v);
851 if (status)
852 return status;
855 status = v->db_free_principal(kcontext, entry, count);
856 get_errmsg(kcontext, status);
857 return status;
881 krb5_error_code status;
898 status = EINVAL;
905 status = ENOMEM;
930 status = 0;
932 if (status != 0) {
937 return status;
945 krb5_error_code status;
948 status = get_vftabl(kcontext, &v);
949 if (status)
950 return status;
953 status = extract_db_args_from_tl_data(kcontext, &entries->tl_data,
956 if (status)
957 return status;
958 status = v->db_put_principal(kcontext, entries, nentries, db_args);
959 get_errmsg(kcontext, status);
961 return status;
968 krb5_error_code status = 0;
979 status = get_vftabl(kcontext, &v);
980 if (status)
983 status = extract_db_args_from_tl_data(kcontext, &entries->tl_data,
986 if (status)
992 status = errno;
999 if ((status = ulog_conv_2logentry(kcontext, entries, upd, *nentries)))
1003 status = ulog_lock(kcontext, KRB5_LOCKMODE_EXCLUSIVE);
1004 if (status != 0)
1010 if ((status = krb5_unparse_name(kcontext, entries->princ,
1017 if ((status = ulog_add_update(kcontext, upd)) != 0)
1024 status = KRB5_KDB_DBTYPE_NOSUP;
1028 status = v->db_put_principal(kcontext, entries, nentries, db_args);
1029 get_errmsg(kcontext, status);
1030 if (status == 0 && fupd) {
1047 return status;
1056 krb5_error_code status;
1058 status = get_vftabl(kcontext, &v);
1059 if (status)
1060 return status;
1063 status = v->db_delete_principal(kcontext, search_for, nentries);
1064 get_errmsg(kcontext, status);
1065 return status;
1072 krb5_error_code status = 0;
1080 status = get_vftabl(kcontext, &v);
1081 if (status)
1082 return status;
1083 status = ulog_lock(kcontext, KRB5_LOCKMODE_EXCLUSIVE);
1084 if (status)
1085 return status;
1091 if ((status = krb5_unparse_name(kcontext, search_for, &princ_name))) {
1093 return status;
1101 if ((status = ulog_delete_update(kcontext, &upd)) != 0) {
1104 return status;
1113 status = v->db_delete_principal(kcontext, search_for, nentries);
1114 get_errmsg(kcontext, status);
1119 if (!status)
1125 return status;
1136 krb5_error_code status = 0;
1139 status = get_vftabl(kcontext, &v);
1140 if (status)
1141 return status;
1146 status = v->db_iterate(kcontext, match_entry, func, func_arg, db_args);
1147 get_errmsg(kcontext, status);
1148 return status;
1154 krb5_error_code status = 0;
1157 status = get_vftabl(kcontext, &v);
1158 if (status)
1159 return status;
1162 status = v->db_supported_realms(kcontext, realms);
1163 get_errmsg(kcontext, status);
1164 return status;
1170 krb5_error_code status = 0;
1173 status = get_vftabl(kcontext, &v);
1174 if (status)
1175 return status;
1178 status = v->db_free_supported_realms(kcontext, realms);
1179 get_errmsg(kcontext, status);
1180 return status;
1187 krb5_error_code status = 0;
1190 status = get_vftabl(kcontext, &v);
1191 if (status)
1192 return status;
1193 status = v->set_master_key(kcontext, pwd, key);
1194 get_errmsg(kcontext, status);
1195 return status;
1207 krb5_error_code status = 0;
1210 status = get_vftabl(kcontext, &v);
1211 if (status)
1212 return status;
1213 status = v->get_master_key(kcontext, key);
1214 get_errmsg(kcontext, status);
1215 return status;
1235 krb5_error_code status = 0;
1238 status = get_vftabl(context, &v);
1239 if (status)
1240 return status;
1243 status = krb5_copy_principal(context, mname,
1245 if (status)
1246 return status;
1249 status = v->fetch_master_key_list(context, mname, mkey, &local_keylist);
1250 if (status == 0) {
1254 get_errmsg(context, status);
1256 return status;
1266 krb5_error_code status = 0;
1269 status = get_vftabl(kcontext, &v);
1270 if (status)
1271 return status;
1274 status = v->store_master_key(kcontext, keyfile, mname, kvno, key,
1276 if (status)
1277 get_errmsg(kcontext, status);
1279 return status;
1286 krb5_error_code status = 0;
1289 status = get_vftabl(kcontext, &v);
1290 if (status)
1291 return status;
1299 status = v->store_master_key_list(kcontext, keyfile, mname,
1302 if (status)
1303 get_errmsg(kcontext, status);
1305 return status;
1432 krb5_error_code status = 0;
1435 status = get_vftabl(kcontext, &v);
1436 if (status)
1437 return status;
1440 status = v->verify_master_key(kcontext, mprinc, kvno, mkey);
1441 get_errmsg(kcontext, status);
1442 return status;
1628 krb5_error_code status;
1631 status = get_vftabl(kcontext, &v);
1632 if (status)
1640 krb5_error_code status;
1643 status = get_vftabl(kcontext, &v);
1644 if (status)
1671 krb5_error_code status = 0;
1674 status = get_vftabl(kcontext, &v);
1675 if (status)
1676 return status;
1677 status = v->dbe_search_enctype(kcontext, dbentp, start, ktype, stype,
1679 get_errmsg(kcontext, status);
1680 return status;
2348 krb5_error_code status = 0;
2351 status = get_vftabl(kcontext, &v);
2352 if (status)
2353 return status;
2354 status = v->db_change_pwd(kcontext, master_key, ks_tuple, ks_tuple_count,
2356 get_errmsg(kcontext, status);
2357 return status;
2364 krb5_error_code status = 0;
2367 status = get_vftabl(kcontext, &v);
2368 if (status)
2369 return status;
2372 status = v->db_create_policy(kcontext, policy);
2373 get_errmsg(kcontext, status);
2374 return status;
2381 krb5_error_code status = 0;
2384 status = get_vftabl(kcontext, &v);
2385 if (status)
2386 return status;
2389 status = v->db_get_policy(kcontext, name, policy, cnt);
2390 get_errmsg(kcontext, status);
2391 return status;
2397 krb5_error_code status = 0;
2400 status = get_vftabl(kcontext, &v);
2401 if (status)
2402 return status;
2405 status = v->db_put_policy(kcontext, policy);
2406 get_errmsg(kcontext, status);
2407 return status;
2414 krb5_error_code status = 0;
2417 status = get_vftabl(kcontext, &v);
2418 if (status)
2419 return status;
2422 status = v->db_iter_policy(kcontext, match_entry, func, data);
2423 get_errmsg(kcontext, status);
2424 return status;
2430 krb5_error_code status = 0;
2433 status = get_vftabl(kcontext, &v);
2434 if (status)
2435 return status;
2438 status = v->db_delete_policy(kcontext, policy);
2439 get_errmsg(kcontext, status);
2440 return status;
2446 krb5_error_code status = 0;
2449 status = get_vftabl(kcontext, &v);
2450 if (status || v->db_free_policy == NULL)
2453 get_errmsg(kcontext, status);
2459 krb5_error_code status = 0;
2465 status = KRB5_KDB_SERVER_INTERNAL_ERR;
2466 krb5_set_error_message (kcontext, status,
2472 status = get_vftabl(kcontext, &v);
2473 if (status)
2475 status = v->promote_db(kcontext, section, db_args);
2476 get_errmsg(kcontext, status);
2480 return status;
2487 krb5_error_code status = 0;
2491 status = get_vftabl(kcontext, &v);
2492 if (status)
2493 return status;
2496 status = v->dbekd_decrypt_key_data(kcontext, &n->keyblock, key_data, dbkey,
2498 if (status == 0)
2501 return status;
2511 krb5_error_code status = 0;
2515 status = get_vftabl(kcontext, &v);
2516 if (status)
2517 return status;
2520 status = decrypt_iterator(kcontext, key_data, dbkey, keysalt);
2521 if (status == 0)
2531 return status;
2543 krb5_error_code status = 0;
2546 status = get_vftabl(kcontext, &v);
2547 if (status)
2548 return status;
2576 krb5_error_code status = 0;
2579 status = get_vftabl(kcontext, &v);
2580 if (status)
2581 return status;
2597 krb5_error_code status = 0;
2602 return status;
2606 status = kdb_setup_lib_handle(kcontext);
2607 if (status) {
2613 status = kdb_lock_lib_lock(dal_handle->lib_handle, FALSE);
2614 if (status) {
2622 return status;