From 33f9a08ec897a57adbca365e5ff4360a81436117 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 10 Apr 1999 03:10:11 +0000 Subject: [PATCH] kconfig.c: Update to use newer (and proper profile calls) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11352 dc483132-0cff-0310-8789-dd5450dbe970 --- src/mac/kconfig/ChangeLog | 4 ++++ src/mac/kconfig/kconfig.c | 15 ++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/mac/kconfig/ChangeLog b/src/mac/kconfig/ChangeLog index 3a7695b79..dad9cfb7b 100644 --- a/src/mac/kconfig/ChangeLog +++ b/src/mac/kconfig/ChangeLog @@ -1,3 +1,7 @@ +1999-04-09 Theodore Ts'o + + * kconfig.c: Update to use newer (and proper profile calls) + Tue Jul 7 17:00:00 1998 Miro Jurisic * Grayed out password changing button and commented out password changing code diff --git a/src/mac/kconfig/kconfig.c b/src/mac/kconfig/kconfig.c index 8b338cae9..0fe496a41 100644 --- a/src/mac/kconfig/kconfig.c +++ b/src/mac/kconfig/kconfig.c @@ -1623,7 +1623,7 @@ void *state; /*also change the profile string to match */ state = NULL; code = profile_find_node_subsection(kcontext->profile->first_file->root, "libdefaults", &state, &nam, &node); - code = profile_delete_node_relation(node, "default_realm"); + code = profile_remove_node(node, "default_realm", 0); code = profile_add_node(node, "default_realm", string, &node); } #endif @@ -2486,7 +2486,8 @@ const char *realm_kdc_names[4]; realm_kdc_names[0] = "domain_realm"; realm_kdc_names[1] = 0; - code = profile_get_first_values(kcontext->profile, realm_kdc_names, &domainlist); + code = profile_get_relation_names(kcontext->profile, realm_kdc_names, + &domainlist); count = 0; while (domainlist && domainlist[count]) @@ -2542,7 +2543,8 @@ const char *realm_kdc_names[4]; realm_kdc_names[0] = "realms"; realm_kdc_names[1] = 0; - code = profile_get_first_values(kcontext->profile, realm_kdc_names, &realmlist); + code = profile_get_subsection_names(kcontext->profile, realm_kdc_names, + &realmlist); count = 0; while (realmlist && realmlist[count]) @@ -2719,7 +2721,7 @@ void *state; state = NULL; code = profile_find_node_subsection(kcontext->profile->first_file->root, "domain_realm", &state, &nam, &node); - code = profile_delete_node_relation(node, host); + code = profile_remove_node(node, host, 0); code = profile_add_node(node, host, realm, &node); #endif @@ -2742,7 +2744,7 @@ void *state; state = NULL; code = profile_find_node_subsection(kcontext->profile->first_file->root, "domain_realm", &state, &nam, &node); - code = profile_delete_node_relation(node, host); + code = profile_remove_node(node, host, 0); #endif } @@ -2787,7 +2789,6 @@ void *state; state = NULL; code = profile_find_node_subsection(kcontext->profile->first_file->root, "realms", &state, &nam, &node); - code = profile_delete_node_relation(node, realm); /* possible memory leak here */ code = profile_add_node(node, realm, 0, &node); /* Create the realm node */ code = profile_add_node(node, "kdc", host, &node2); /* Create the realm node */ code = profile_add_node(node, "admin_server", host, &node2); /* Create the realm node */ @@ -2813,7 +2814,7 @@ void *state; state = NULL; code = profile_find_node_subsection(kcontext->profile->first_file->root, "realms", &state, &nam, &node); - code = profile_delete_interior_node_relation(node, realm); /* possible memory leak here */ + code = profile_remove_node(node, realm, 1); #endif } -- 2.26.2