unsigned/signed int warnings in krb5_context variables
authorEzra Peisach <epeisach@mit.edu>
Fri, 21 Apr 2006 15:55:17 +0000 (15:55 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 21 Apr 2006 15:55:17 +0000 (15:55 +0000)
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

src/include/k5-int.h
src/lib/krb5/krb/init_ctx.c

index d9a464733fdfed2cc7f7172c4859ee7ad30a97ab..eaf99322f0d60eb5696c5e5d7a90ec811aaac881 100644 (file)
@@ -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;
 
index 3cbf99e5b8a7dd32335aa7e81fbc59e159077d31..82cc4f1cdd3f1669f89b21ada1c26e6efef285d2 100644 (file)
@@ -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;