Implement [kdc] derived_keys_maxdots

This commit is contained in:
Roland C. Dowdeswell
2019-10-17 16:30:24 +01:00
committed by Viktor Dukhovni
parent dfada0ccad
commit aa5c525e71
3 changed files with 16 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ krb5_kdc_get_config(krb5_context context, krb5_kdc_configuration **config)
c->logf = NULL;
c->enable_derived_keys = FALSE;
c->derived_keys_ndots = 2;
c->derived_keys_maxdots = -1;
c->num_kdc_processes =
krb5_config_get_int_default(context, NULL, c->num_kdc_processes,
@@ -267,6 +268,10 @@ krb5_kdc_get_config(krb5_context context, krb5_kdc_configuration **config)
krb5_config_get_int_default(context, NULL, c->derived_keys_ndots,
"kdc", "derived_keys_ndots", NULL);
c->derived_keys_maxdots =
krb5_config_get_int_default(context, NULL, c->derived_keys_maxdots,
"kdc", "derived_keys_maxdots", NULL);
*config = c;
return 0;