From c9cdb84312d59b1fd3e53d119dec8ef5fcb4d890 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 10 Jun 1997 14:13:56 +0000 Subject: [PATCH] Use krb5_realm. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1885 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/krbhst.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/krb5/krbhst.c b/lib/krb5/krbhst.c index 6ee0d2c69..3fce565bc 100644 --- a/lib/krb5/krbhst.c +++ b/lib/krb5/krbhst.c @@ -4,7 +4,7 @@ RCSID("$Id$"); krb5_error_code krb5_get_krbhst (krb5_context context, - const krb5_data *realm, + const krb5_realm *realm, char ***hostlist) { krb5_error_code err; @@ -13,7 +13,11 @@ krb5_get_krbhst (krb5_context context, memset(buf, 0, sizeof(buf)); strcpy(buf, "realms "); +#ifdef USE_ASN1_PRINCIPAL + strcat(buf, *realm); +#else strncat(buf, (char*)realm->data, realm->length); +#endif strcat(buf, " kdc"); err = krb5_get_config_tag (context->cf, buf, &val);