Catch deprecated entries.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22531 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -344,6 +344,7 @@ struct entry {
|
|||||||
const char *name;
|
const char *name;
|
||||||
int type;
|
int type;
|
||||||
void *check_data;
|
void *check_data;
|
||||||
|
int deprecated;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct entry all_strings[] = {
|
struct entry all_strings[] = {
|
||||||
@@ -365,7 +366,7 @@ struct entry v4_name_convert_entries[] = {
|
|||||||
|
|
||||||
struct entry libdefaults_entries[] = {
|
struct entry libdefaults_entries[] = {
|
||||||
{ "accept_null_addresses", krb5_config_string, check_boolean },
|
{ "accept_null_addresses", krb5_config_string, check_boolean },
|
||||||
{ "capath", krb5_config_list, all_strings },
|
{ "capath", krb5_config_list, all_strings, 1 },
|
||||||
{ "check_pac", krb5_config_string, check_boolean },
|
{ "check_pac", krb5_config_string, check_boolean },
|
||||||
{ "clockskew", krb5_config_string, check_time },
|
{ "clockskew", krb5_config_string, check_time },
|
||||||
{ "date_format", krb5_config_string, NULL },
|
{ "date_format", krb5_config_string, NULL },
|
||||||
@@ -592,6 +593,10 @@ check_section(krb5_context context, const char *path, krb5_config_section *cf,
|
|||||||
} else if(p->type == krb5_config_list && e->check_data != NULL) {
|
} else if(p->type == krb5_config_list && e->check_data != NULL) {
|
||||||
error |= check_section(context, local, p->u.list, e->check_data);
|
error |= check_section(context, local, p->u.list, e->check_data);
|
||||||
}
|
}
|
||||||
|
if(e->deprecated) {
|
||||||
|
krb5_warnx(context, "%s: is a deprecated entry", local);
|
||||||
|
error |= 1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user