From: Ezra Peisach Date: Tue, 12 Jun 2001 15:02:34 +0000 (+0000) Subject: * Makefile.in (t_walk_rtree, t_kerb): Do not link against kdb libraries X-Git-Tag: krb5-1.3-alpha1~1422 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=689ab7ec2e9a7dfa346d0e5610cedcf79ea6453b;p=krb5.git * Makefile.in (t_walk_rtree, t_kerb): Do not link against kdb libraries for these test executables. * srv_rcache.c (krb5_get_server_rcache): Cast argument to isgraph() to int. * init_ctx.c: Cast arguments to isspace() to int. If unix is defined, include ../krb5_libinit.h. There has to be a better was for windows. * conv_princ.c (krb5_425_conv_principal): Cast argument to isupper(). to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13340 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 2802e8cb5..3899ed77d 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,17 @@ +2001-06-12 Ezra Peisach + + * Makefile.in (t_walk_rtree, t_kerb): Do not link against kdb libraries + for these test executables. + + * srv_rcache.c (krb5_get_server_rcache): Cast argument to + isgraph() to int. + + * init_ctx.c: Cast arguments to isspace() to int. If unix is defined, + include ../krb5_libinit.h. There has to be a better was for windows. + + * conv_princ.c (krb5_425_conv_principal): Cast argument to isupper(). + to int. + 2001-06-11 Ezra Peisach * str_conv.c: If strptime() is present on system without a diff --git a/src/lib/krb5/krb/Makefile.in b/src/lib/krb5/krb/Makefile.in index 19c1da40c..641817854 100644 --- a/src/lib/krb5/krb/Makefile.in +++ b/src/lib/krb5/krb/Makefile.in @@ -291,13 +291,11 @@ T_SER_OBJS= t_ser.o ser_actx.o ser_adata.o ser_addr.o ser_auth.o ser_cksum.o \ T_DELTAT_OBJS= t_deltat.o deltat.o -t_walk_rtree: $(T_WALK_RTREE_OBJS) $(KDB5_DEPLIBS) $(KRB5_BASE_DEPLIBS) - $(CC_LINK) -o t_walk_rtree $(T_WALK_RTREE_OBJS) \ - $(KDB5_LIBS) $(KRB5_BASE_LIBS) +t_walk_rtree: $(T_WALK_RTREE_OBJS) $(KRB5_BASE_DEPLIBS) + $(CC_LINK) -o t_walk_rtree $(T_WALK_RTREE_OBJS) $(KRB5_BASE_LIBS) -t_kerb: $(T_KERB_OBJS) $(KDB5_DEPLIBS) $(KRB5_BASE_DEPLIBS) - $(CC_LINK) -o t_kerb $(T_KERB_OBJS) \ - $(KDB5_LIBS) $(KRB5_BASE_LIBS) +t_kerb: $(T_KERB_OBJS) $(KRB5_BASE_DEPLIBS) + $(CC_LINK) -o t_kerb $(T_KERB_OBJS) $(KRB5_BASE_LIBS) t_ser: $(T_SER_OBJS) $(KDB5_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(CC_LINK) -o t_ser $(T_SER_OBJS) \ diff --git a/src/lib/krb5/krb/conv_princ.c b/src/lib/krb5/krb/conv_princ.c index 8805fe0d5..fb1e3465f 100644 --- a/src/lib/krb5/krb/conv_princ.c +++ b/src/lib/krb5/krb/conv_princ.c @@ -318,7 +318,7 @@ krb5_425_conv_principal(context, name, instance, realm, princ) return retval; if (domain) { for (cp = domain; *cp; cp++) - if (isupper(*cp)) + if (isupper((int) (*cp))) *cp = tolower(*cp); strncat(buf, ".", sizeof(buf) - 1 - strlen(buf)); strncat(buf, domain, sizeof(buf) - 1 - strlen(buf)); diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 6a68720a0..e42095106 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -55,6 +55,10 @@ #include "k5-int.h" #include #include "brand.c" +/* There has to be a better way for windows... */ +#if defined(unix) +#include "../krb5_libinit.h" +#endif /* The des-mdX entries are last for now, because it's easy to configure KDCs to issue TGTs with des-mdX keys and then not accept @@ -329,11 +333,11 @@ get_profile_etype_list(context, ktypes, profstr, ctx_count, ctx_list) count = 0; sp = retval; while (sp) { - for (ep = sp; *ep && (*ep != ',') && !isspace(*ep); ep++) + for (ep = sp; *ep && (*ep != ',') && !isspace((int) (*ep)); ep++) ; if (*ep) { *ep++ = '\0'; - while (isspace(*ep) || *ep == ',') + while (isspace((int) (*ep)) || *ep == ',') *ep++ = '\0'; } else ep = (char *) NULL; diff --git a/src/lib/krb5/krb/srv_rcache.c b/src/lib/krb5/krb/srv_rcache.c index 33e76842e..ad5f7bf5a 100644 --- a/src/lib/krb5/krb/srv_rcache.c +++ b/src/lib/krb5/krb/srv_rcache.c @@ -61,7 +61,7 @@ krb5_get_server_rcache(context, piece, rcptr) for (i = 0; i < piece->length; i++) { if (piece->data[i] == '\\') len++; - else if (!isgraph(piece->data[i])) + else if (!isgraph((int) piece->data[i])) len += 3; } @@ -84,7 +84,7 @@ krb5_get_server_rcache(context, piece, rcptr) cachename[p++] = '\\'; continue; } - if (!isgraph(piece->data[i])) { + if (!isgraph((int) piece->data[i])) { sprintf(tmp, "%03o", piece->data[i]); cachename[p++] = '\\'; cachename[p++] = tmp[0];