summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-06-10 01:05:40 +0000
committerKen Raeburn <raeburn@mit.edu>2006-06-10 01:05:40 +0000
commit5312c8fcb5f081adfb4dda1a909e61a090cb1692 (patch)
treed9ccc5b4d078e4d332f612225112785cf92f6166 /src
parent505f26c501bff3b934d478a047266c920097e548 (diff)
Since it appears we don't actually set the conf_tgs_ktypes field except in this
initial allocation of zero elements, it can be deleted, along with conf_tgs_ktypes_count and the associated code... ticket: 2786 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18105 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/include/k5-int.h10
-rw-r--r--src/lib/krb5/krb/init_ctx.c15
2 files changed, 2 insertions, 23 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 6bfdfeed1..7e4effed5 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -1047,15 +1047,7 @@ struct _krb5_context {
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
diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c
index 9b90f7121..e1e1e755e 100644
--- a/src/lib/krb5/krb/init_ctx.c
+++ b/src/lib/krb5/krb/init_ctx.c
@@ -169,13 +169,6 @@ init_common (krb5_context *context, krb5_boolean secure, krb5_boolean kdc)
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;
@@ -269,11 +262,6 @@ krb5_free_context(krb5_context ctx)
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;
@@ -462,8 +450,7 @@ krb5_get_tgs_ktypes(krb5_context context, krb5_const_principal princ, krb5_encty
/* 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,