summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2006-04-21 15:55:17 +0000
committerEzra Peisach <epeisach@mit.edu>2006-04-21 15:55:17 +0000
commit34a7b0beed75a4b37926bcd4a65e81804d33f305 (patch)
treeef3b3b0038fd95a9b6391510d8f247626be8c61c /src
parentb9b802c4fd52b7f090c090c3179adf69415304af (diff)
unsigned/signed int warnings in krb5_context variables
Change in_tkt_ktype_count, tgs_ktype_count and conf_tgs_ktypes_count in context to unsigned int. Change get_profile_etype_list() to expect unsigned int as well. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17947 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/include/k5-int.h6
-rw-r--r--src/lib/krb5/krb/init_ctx.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index d9a464733..eaf99322f 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -1013,9 +1013,9 @@ void KRB5_CALLCONV krb5_free_pa_enc_ts
struct _krb5_context {
krb5_magic magic;
krb5_enctype *in_tkt_ktypes;
- int in_tkt_ktype_count;
+ unsigned int in_tkt_ktype_count;
krb5_enctype *tgs_ktypes;
- int tgs_ktype_count;
+ unsigned int tgs_ktype_count;
/* This used to be a void*, but since we always allocate them
together (though in different source files), and the types
are declared in the same header, might as well just combine
@@ -1054,7 +1054,7 @@ struct _krb5_context {
requested ticket (the session key of which may be
constrained by tgs_ktypes above). */
krb5_enctype *conf_tgs_ktypes;
- int conf_tgs_ktypes_count;
+ unsigned int conf_tgs_ktypes_count;
/* Use the _configured version? */
krb5_boolean use_conf_ktypes;
diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c
index 3cbf99e5b..82cc4f1cd 100644
--- a/src/lib/krb5/krb/init_ctx.c
+++ b/src/lib/krb5/krb/init_ctx.c
@@ -317,7 +317,7 @@ krb5_set_default_in_tkt_ktypes(krb5_context context, const krb5_enctype *ktypes)
static krb5_error_code
get_profile_etype_list(krb5_context context, krb5_enctype **ktypes, char *profstr,
- int ctx_count, krb5_enctype *ctx_list)
+ unsigned int ctx_count, krb5_enctype *ctx_list)
{
krb5_enctype *old_ktypes;