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:
@@ -22,11 +22,10 @@ krb5_get_host_realm(krb5_context context,
|
|||||||
const char *host,
|
const char *host,
|
||||||
char ***realms)
|
char ***realms)
|
||||||
{
|
{
|
||||||
krb5_config_binding *state = NULL;
|
|
||||||
char hostname[MAXHOSTNAMELEN];
|
char hostname[MAXHOSTNAMELEN];
|
||||||
char *res = NULL;
|
char *res = NULL;
|
||||||
const char *partial = NULL;
|
const char *partial = NULL;
|
||||||
krb5_config_binding *l;
|
const krb5_config_binding *l;
|
||||||
|
|
||||||
if (host == NULL) {
|
if (host == NULL) {
|
||||||
if (gethostname (hostname, sizeof(hostname)))
|
if (gethostname (hostname, sizeof(hostname)))
|
||||||
@@ -40,9 +39,7 @@ krb5_get_host_realm(krb5_context context,
|
|||||||
(*realms)[0] = NULL;
|
(*realms)[0] = NULL;
|
||||||
(*realms)[1] = NULL;
|
(*realms)[1] = NULL;
|
||||||
|
|
||||||
for(l = krb5_config_get_next (context->cf,
|
for(l = krb5_config_get_list (context->cf,
|
||||||
&state,
|
|
||||||
LIST,
|
|
||||||
"domain_realm",
|
"domain_realm",
|
||||||
NULL);
|
NULL);
|
||||||
l;
|
l;
|
||||||
|
Reference in New Issue
Block a user