(init_context_from_config_file): init date_fmt, also do some cleanup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8487 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -89,27 +89,26 @@ init_context_from_config_file(krb5_context context)
|
|||||||
INIT_FIELD(context, time, kdc_timeout, 3, "kdc_timeout");
|
INIT_FIELD(context, time, kdc_timeout, 3, "kdc_timeout");
|
||||||
INIT_FIELD(context, int, max_retries, 3, "max_retries");
|
INIT_FIELD(context, int, max_retries, 3, "max_retries");
|
||||||
|
|
||||||
context->http_proxy = krb5_config_get_string(context, NULL, "libdefaults",
|
INIT_FIELD(context, string, http_proxy, NULL, "http_proxy");
|
||||||
"http_proxy", NULL);
|
|
||||||
|
|
||||||
set_etypes (context, "default_etypes", &context->etypes);
|
set_etypes (context, "default_etypes", &context->etypes);
|
||||||
set_etypes (context, "default_etypes_des", &context->etypes_des);
|
set_etypes (context, "default_etypes_des", &context->etypes_des);
|
||||||
|
|
||||||
/* default keytab name */
|
/* default keytab name */
|
||||||
context->default_keytab = krb5_config_get_string(context, NULL,
|
INIT_FIELD(context, string, default_keytab,
|
||||||
"libdefaults",
|
KEYTAB_DEFAULT, "default_keytab_name");
|
||||||
"default_keytab_name",
|
|
||||||
NULL);
|
|
||||||
if(context->default_keytab == NULL)
|
|
||||||
context->default_keytab = KEYTAB_DEFAULT;
|
|
||||||
|
|
||||||
context->time_fmt = krb5_config_get_string(context, NULL, "libdefaults",
|
INIT_FIELD(context, string, time_fmt,
|
||||||
"time_format", NULL);
|
"%Y-%m-%dT%H:%M:%S", "time_format");
|
||||||
if(context->time_fmt == NULL)
|
|
||||||
context->time_fmt = "%Y-%m-%dT%H:%M:%S";
|
|
||||||
context->log_utc = krb5_config_get_bool(context, NULL, "libdefaults",
|
|
||||||
"log_utc", NULL);
|
|
||||||
|
|
||||||
|
INIT_FIELD(context, string, date_fmt,
|
||||||
|
"%Y-%m-%d", "date_format");
|
||||||
|
|
||||||
|
INIT_FIELD(context, bool, log_utc,
|
||||||
|
FALSE, "log_utc");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* init dns-proxy slime */
|
/* init dns-proxy slime */
|
||||||
tmp = krb5_config_get_string(context, NULL, "libdefaults",
|
tmp = krb5_config_get_string(context, NULL, "libdefaults",
|
||||||
"dns_proxy", NULL);
|
"dns_proxy", NULL);
|
||||||
|
Reference in New Issue
Block a user