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
This commit is contained in:
Love Hörnquist Åstrand
2006-10-17 09:24:32 +00:00
parent 126ce9359c
commit 38dafe356c

View File

@@ -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;
}