From 51d9147fa54ccc6fec3cec833c4e922e054a4941 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Thu, 6 Mar 2003 19:16:52 +0000 Subject: [PATCH] * cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, sendmsg.c: Removed Mac-specific includes. * conv_creds.c: If we are on the Mac and using the CCAPI, set the string_to_key type to MIT. * krb524.h: Removed enumsalwaysint because there are no enums in this header. Also include krb524_err with <> because on Mac OS X both are public headers and should not be included with "". * Makefile.in: set KRB524_PRIVATE while building so that Darwin builds see these prototypes. Otherwise the Darwin build will fail git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15244 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb524/ChangeLog | 14 ++++++++++++++ src/krb524/Makefile.in | 2 +- src/krb524/cnv_tkt_skey.c | 6 ------ src/krb524/conv_creds.c | 12 +++++++----- src/krb524/conv_princ.c | 5 ----- src/krb524/encode.c | 5 ----- src/krb524/krb524.h | 5 ++--- src/krb524/sendmsg.c | 5 ----- 8 files changed, 24 insertions(+), 30 deletions(-) diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 7d111ff7e..672bffe8c 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,17 @@ +2003-03-06 Alexandra Ellwood + * cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, sendmsg.c: + Removed Mac-specific includes. + + * conv_creds.c: If we are on the Mac and using the CCAPI, set + the string_to_key type to MIT. + + * krb524.h: Removed enumsalwaysint because there are no enums in this + header. Also include krb524_err with <> because on Mac OS X both + are public headers and should not be included with "". + + * Makefile.in: set KRB524_PRIVATE while building so that Darwin builds + see these prototypes. Otherwise the Darwin build will fail. + 2003-01-31 Ken Raeburn * Makefile.in (clean-windows): Remove $(GENS). diff --git a/src/krb524/Makefile.in b/src/krb524/Makefile.in index 2006e3a9d..1e5b5dc31 100644 --- a/src/krb524/Makefile.in +++ b/src/krb524/Makefile.in @@ -31,7 +31,7 @@ LIBMINOR=0 RELDIR=../krb524 STOBJLISTS=OBJS.ST -DEFINES = -DUSE_MASTER +DEFINES = -DUSE_MASTER -DKRB524_PRIVATE=1 PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH) PROG_RPATH=$(KRB5_LIBDIR) KRB524_DEPLIB = libkrb524.a diff --git a/src/krb524/cnv_tkt_skey.c b/src/krb524/cnv_tkt_skey.c index f34ea6f44..67349765c 100644 --- a/src/krb524/cnv_tkt_skey.c +++ b/src/krb524/cnv_tkt_skey.c @@ -30,14 +30,8 @@ #include #include #endif -#if TARGET_OS_MAC -#include -#include -#include "cr_tkt.h" -#else #include #include "krb524.h" -#endif static int krb524int_krb_create_ticket(KTEXT, unsigned int, char *, char *, char *, long, diff --git a/src/krb524/conv_creds.c b/src/krb524/conv_creds.c index 5e52040f3..ba8daaae4 100644 --- a/src/krb524/conv_creds.c +++ b/src/krb524/conv_creds.c @@ -26,12 +26,11 @@ #include #include "port-sockets.h" #include "socket-utils.h" -#if TARGET_OS_MAC -#include -#include -#else #include #include "krb524.h" + +#ifdef USE_CCAPI +#include #endif krb5_error_code krb524_convert_creds_plain @@ -61,7 +60,10 @@ krb524_convert_creds_kdc(context, v5creds, v4creds) if (ret) return ret; -#ifdef TARGET_OS_MAC +#if TARGET_OS_MAC +#ifdef USE_CCAPI + v4creds->stk_type = cc_v4_stk_des; +#endif if (slen == sizeof(struct sockaddr_in) && ss2sa(&ss)->sa_family == AF_INET) { v4creds->address = ss2sin(&ss)->sin_addr.s_addr; diff --git a/src/krb524/conv_princ.c b/src/krb524/conv_princ.c index 83447317a..f52c0dd13 100644 --- a/src/krb524/conv_princ.c +++ b/src/krb524/conv_princ.c @@ -21,13 +21,8 @@ */ #include "krb5.h" -#if TARGET_OS_MAC -#include -#include -#else #include #include "krb524.h" -#endif int krb524_convert_princs(context, client, server, pname, pinst, prealm, sname, sinst, srealm) diff --git a/src/krb524/encode.c b/src/krb524/encode.c index c20c2281b..00698cfeb 100644 --- a/src/krb524/encode.c +++ b/src/krb524/encode.c @@ -34,13 +34,8 @@ #include #endif -#if TARGET_OS_MAC -#include -#include -#else #include #include "krb524.h" -#endif /* * I'm sure that this is reinventing the wheel, but I don't know where diff --git a/src/krb524/krb524.h b/src/krb524/krb524.h index 803b97564..f44a6b4c9 100644 --- a/src/krb524/krb524.h +++ b/src/krb524/krb524.h @@ -32,12 +32,13 @@ # define KRB524_PRIVATE 0 # endif #else -# include "krb524_err.h" # ifndef KRB524_PRIVATE # define KRB524_PRIVATE 1 # endif #endif +#include + #ifndef KRB524INT_BEGIN_DECLS #ifdef __cplusplus #define KRB524INT_BEGIN_DECLS extern "C" { @@ -51,7 +52,6 @@ #if TARGET_OS_MAC # if defined(__MWERKS__) # pragma import on -# pragma enumsalwaysint on # endif # pragma options align=mac68k #endif @@ -120,7 +120,6 @@ int krb524_sendto_kdc #if TARGET_OS_MAC # if defined(__MWERKS__) -# pragma enumsalwaysint reset # pragma import reset # endif # pragma options align=reset diff --git a/src/krb524/sendmsg.c b/src/krb524/sendmsg.c index 8cea52e01..5cbd324ac 100644 --- a/src/krb524/sendmsg.c +++ b/src/krb524/sendmsg.c @@ -39,13 +39,8 @@ #include #include -#if TARGET_OS_MAC -#include -#include -#else #include #include "krb524.h" -#endif /* * krb524_sendto_kdc: -- 2.26.2