updated to current krb5_config_*

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2149 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-07-11 13:07:02 +00:00
parent 0aeedc082e
commit 07a41e8580

View File

@@ -22,11 +22,10 @@ krb5_get_host_realm(krb5_context context,
const char *host,
char ***realms)
{
krb5_config_binding *state = NULL;
char hostname[MAXHOSTNAMELEN];
char *res = NULL;
const char *partial = NULL;
krb5_config_binding *l;
const krb5_config_binding *l;
if (host == NULL) {
if (gethostname (hostname, sizeof(hostname)))
@@ -40,9 +39,7 @@ krb5_get_host_realm(krb5_context context,
(*realms)[0] = NULL;
(*realms)[1] = NULL;
for(l = krb5_config_get_next (context->cf,
&state,
LIST,
for(l = krb5_config_get_list (context->cf,
"domain_realm",
NULL);
l;