+2003-03-06 Alexandra Ellwood <lxs@mit.edu>
+ * 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 <raeburn@mit.edu>
* Makefile.in (clean-windows): Remove $(GENS).
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
#include <sys/time.h>
#include <netinet/in.h>
#endif
-#if TARGET_OS_MAC
-#include <Kerberos/krb.h>
-#include <Kerberos/krb524.h>
-#include "cr_tkt.h"
-#else
#include <krb.h>
#include "krb524.h"
-#endif
static int
krb524int_krb_create_ticket(KTEXT, unsigned int, char *, char *, char *, long,
#include <sys/types.h>
#include "port-sockets.h"
#include "socket-utils.h"
-#if TARGET_OS_MAC
-#include <Kerberos/krb.h>
-#include <Kerberos/krb524.h>
-#else
#include <krb.h>
#include "krb524.h"
+
+#ifdef USE_CCAPI
+#include <CredentialsCache.h>
#endif
krb5_error_code krb524_convert_creds_plain
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;
*/
#include "krb5.h"
-#if TARGET_OS_MAC
-#include <Kerberos/krb.h>
-#include <Kerberos/krb524.h>
-#else
#include <krb.h>
#include "krb524.h"
-#endif
int krb524_convert_princs(context, client, server, pname, pinst, prealm,
sname, sinst, srealm)
#include <netinet/in.h>
#endif
-#if TARGET_OS_MAC
-#include <Kerberos/krb.h>
-#include <Kerberos/krb524.h>
-#else
#include <krb.h>
#include "krb524.h"
-#endif
/*
* I'm sure that this is reinventing the wheel, but I don't know where
# define KRB524_PRIVATE 0
# endif
#else
-# include "krb524_err.h"
# ifndef KRB524_PRIVATE
# define KRB524_PRIVATE 1
# endif
#endif
+#include <krb524_err.h>
+
#ifndef KRB524INT_BEGIN_DECLS
#ifdef __cplusplus
#define KRB524INT_BEGIN_DECLS extern "C" {
#if TARGET_OS_MAC
# if defined(__MWERKS__)
# pragma import on
-# pragma enumsalwaysint on
# endif
# pragma options align=mac68k
#endif
#if TARGET_OS_MAC
# if defined(__MWERKS__)
-# pragma enumsalwaysint reset
# pragma import reset
# endif
# pragma options align=reset
#include <stdlib.h>
#include <string.h>
-#if TARGET_OS_MAC
-#include <Kerberos/krb.h>
-#include <Kerberos/krb524.h>
-#else
#include <krb.h>
#include "krb524.h"
-#endif
/*
* krb524_sendto_kdc: