absolute limit on the UDP packet size. */
int udp_pref_limit;
- /* This is the tgs_ktypes list as read from the profile, or
- set to compiled-in defaults. The application code cannot
- override it. This is used for session keys for
- intermediate ticket-granting tickets used to acquire the
- requested ticket (the session key of which may be
- constrained by tgs_ktypes above). */
- krb5_enctype *conf_tgs_ktypes;
- unsigned int conf_tgs_ktypes_count;
- /* Use the _configured version? */
+ /* Use the config-file ktypes instead of app-specified? */
krb5_boolean use_conf_ktypes;
#ifdef KRB5_DNS_LOOKUP
if ((retval = krb5_set_default_tgs_ktypes(ctx, NULL)))
goto cleanup;
- ctx->conf_tgs_ktypes = calloc(ctx->tgs_ktype_count, sizeof(krb5_enctype));
- if (ctx->conf_tgs_ktypes == NULL && ctx->tgs_ktype_count != 0)
- goto cleanup;
- memcpy(ctx->conf_tgs_ktypes, ctx->tgs_ktypes,
- sizeof(krb5_enctype) * ctx->tgs_ktype_count);
- ctx->conf_tgs_ktypes_count = ctx->tgs_ktype_count;
-
if ((retval = krb5_os_init_context(ctx, kdc)))
goto cleanup;
ctx->tgs_ktypes = 0;
}
- if (ctx->conf_tgs_ktypes) {
- free(ctx->conf_tgs_ktypes);
- ctx->conf_tgs_ktypes = 0;
- }
-
if (ctx->default_realm) {
free(ctx->default_realm);
ctx->default_realm = 0;
/* This one is set *only* by reading the config file; it's not
set by the application. */
return(get_profile_etype_list(context, ktypes, "default_tgs_enctypes",
- context->conf_tgs_ktypes_count,
- context->conf_tgs_ktypes));
+ 0, NULL));
else
return(get_profile_etype_list(context, ktypes, "default_tgs_enctypes",
context->tgs_ktype_count,