From 38dafe356cdc2a461b0f054b2b022e5faf463c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 17 Oct 2006 09:24:32 +0000 Subject: [PATCH] Add krb5_set_dns_canonize_hostname and krb5_get_dns_canonize_hostname Set context->dns_canonize_hostname using config file. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18509 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/context.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/krb5/context.c b/lib/krb5/context.c index 97141b302..2e6be2713 100644 --- a/lib/krb5/context.c +++ b/lib/krb5/context.c @@ -181,6 +181,7 @@ init_context_from_config_file(krb5_context context) INIT_FIELD(context, bool, srv_lookup, TRUE, "srv_lookup"); INIT_FIELD(context, bool, srv_lookup, context->srv_lookup, "dns_lookup_kdc"); INIT_FIELD(context, int, large_msg_size, 6000, "large_message_size"); + INIT_FIELD(context, bool, dns_canonize_hostname, TRUE, "dns_canonize_hostname"); context->default_cc_name = NULL; return 0; } @@ -681,3 +682,15 @@ krb5_is_thread_safe(void) return FALSE; #endif } + +void KRB5_LIB_FUNCTION +krb5_set_dns_canonize_hostname (krb5_context context, krb5_boolean flag) +{ + context->dns_canonize_hostname = flag; +} + +krb5_boolean KRB5_LIB_FUNCTION +krb5_get_dns_canonize_hostname (krb5_context context) +{ + return context->dns_canonize_hostname; +}