diff options
author | Karl Ramm <kcr@mit.edu> | 2009-03-02 03:14:23 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2009-03-02 03:14:23 +0000 |
commit | 2e7ac9926a7acb502c3887a4a01f9b17ff1f857d (patch) | |
tree | 2bf4fa7a1e8e1be8945a317620257a0b292404b3 /server/kstuff.c | |
parent | 5a4eb277e3f77610b67c13ee05ab4715f018b93b (diff) |
build everything successfully with -Wall -Werror
Diffstat (limited to 'server/kstuff.c')
-rw-r--r-- | server/kstuff.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/server/kstuff.c b/server/kstuff.c index a157288..0a9f6f7 100644 --- a/server/kstuff.c +++ b/server/kstuff.c @@ -20,12 +20,13 @@ static const char rcsid_kstuff_c[] = "$Id$"; #endif #endif -#ifdef HAVE_KRB4 - +#if defined(HAVE_KRB4) && defined(HAVE_KRB5) static ZChecksum_t compute_checksum(ZNotice_t *, C_Block); static ZChecksum_t compute_rlm_checksum(ZNotice_t *, C_Block); static Code_t ZCheckAuthentication4(ZNotice_t *notice, struct sockaddr_in *from); +#endif +#ifdef HAVE_KRB4 /* * GetKerberosData * @@ -105,7 +106,7 @@ SendKerberosData(int fd, /* file descriptor to write onto */ int written; int size_to_write; - rem = krb_mk_req(ticket, service, host, ZGetRealm(), (u_long) 0); + rem = krb_mk_req(ticket, service, host, (char *)ZGetRealm(), (u_long) 0); if (rem != KSUCCESS) return rem + krb_err_base; @@ -811,7 +812,7 @@ ZCheckAuthentication(ZNotice_t *notice, #undef KRB5AUTHENT -#ifdef HAVE_KRB4 +#if defined(HAVE_KRB4) && defined(HAVE_KRB5) static Code_t ZCheckAuthentication4(ZNotice_t *notice, struct sockaddr_in *from) @@ -865,7 +866,7 @@ ZCheckAuthentication4(ZNotice_t *notice, #endif -#ifdef HAVE_KRB4 +#if defined(HAVE_KRB4) && defined(HAVE_KRB5) static ZChecksum_t compute_checksum(ZNotice_t *notice, C_Block session_key) |