+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * k5-int.h: Don't test macintosh, __MWERKS__, applec, or THINK_C.
+
2004-06-18 Ken Raeburn <raeburn@mit.edu>
* k5-platform.h (MAKE_INIT_FUNCTION, CALL_INIT_FUNCTION,
#define ANSI_STDIO
#endif
-/* Note, this may shoot us in the foot if we switch to CW compilers for Mach-o builds */
-#if !defined(macintosh) && (defined(__MWERKS__) || defined(applec) || defined(THINK_C))
-#define macintosh
-#endif
-
-#ifdef macintosh
-#define SIZEOF_INT 4
-#define SIZEOF_SHORT 2
-#define HAVE_SRAND
-#define NO_PASSWORD
-/*#define ENOMEM -1*/
-#define ANSI_STDIO
-#include <size_t.h>
-#include <unix.h>
-#include <ctype.h>
-#include <fcntl.h>
-#endif
-
#ifndef KRB5_AUTOCONF__
#define KRB5_AUTOCONF__
#include "autoconf.h"
struct srv_dns_entry **answers);
void krb5int_free_srv_dns_data(struct srv_dns_entry *);
-#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
-#pragma import reset
-#endif
-
/*
* Convenience function for structure magic number
*/
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * des.h, krb.h: Don't test for macintosh or __MWERKS__.
+
2004-03-08 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (MY_SUBDIRS): Deleted.
* Include file for the Data Encryption Standard library.
*/
-#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
+#if defined(__MACH__) && defined(__APPLE__)
# include <TargetConditionals.h>
# if TARGET_RT_MAC_CFM
# error "Use KfM 4.0 SDK headers for CFM compilation."
KRBINT_BEGIN_DECLS
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import on
-# endif
# pragma options align=mac68k
#endif
typedef struct des_ks_struct { DES_INT32 _[2]; } des_key_schedule[16];
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma enumsalwaysint reset
-# pragma import reset
-# endif
# pragma options align=reset
#endif
KRBINT_BEGIN_DECLS
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import on
-# pragma enumsalwaysint on
-# endif
# pragma options align=mac68k
#endif
void des_cblock_print_file(des_cblock *, FILE *fp);
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import reset
-# endif
# pragma options align=reset
#endif
* For MacOS, don't expose prototypes of various private functions.
* Unfortuantely, they've leaked out everywhere else.
*/
-#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
+#if defined(__MACH__) && defined(__APPLE__)
# include <TargetConditionals.h>
# if TARGET_RT_MAC_CFM
# error "Use KfM 4.0 SDK headers for CFM compilation."
KRBINT_BEGIN_DECLS
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import on
-# pragma enumsalwaysint on
-# endif
# pragma options align=mac68k
#endif
#endif
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import reset
-# endif
# pragma options align=reset
#endif
#define KRB5_PRIVATE 0
#endif
-#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
+#if defined(__MACH__) && defined(__APPLE__)
# include <TargetConditionals.h>
# if TARGET_RT_MAC_CFM
# error "Use KfM 4.0 SDK headers for CFM compilation."
KRB5INT_BEGIN_DECLS
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import on
-# endif
# pragma options align=mac68k
#endif
int *result_code, krb5_data *result_code_string, krb5_data *result_string);
#if KRB5_PRIVATE
-#ifndef macintosh
krb5_error_code krb5_set_config_files
(krb5_context, const char **);
void KRB5_CALLCONV krb5_free_config_files
(char **filenames);
-
-#endif
#endif
krb5_error_code KRB5_CALLCONV
(krb5_context context);
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import reset
-# endif
# pragma options align=reset
#endif
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * adm_proto.h, kdb.h, kdb_dbc.h, kdb_kt.h: Don't test macintosh.
+
2004-06-16 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (all-mac, clean-mac): Targets deleted.
krb5_auth_context,
krb5_ccache);
-#if !defined(_WIN32) && !defined(macintosh)
+#if !defined(_WIN32)
/* adm_kw_dec.c */
krb5_error_code krb5_adm_proto_to_dbent
(krb5_context,
char *,
krb5_int32 *,
krb5_data **);
-#endif /* !(windows or macintosh) */
+#endif /* !windows */
/* adm_kt_dec.c */
krb5_error_code krb5_adm_proto_to_ktent
#define KRB5_KDB_CREATE_BTREE 0x00000001
#define KRB5_KDB_CREATE_HASH 0x00000002
-#if !defined(macintosh) && !defined(_WIN32)
+#if !defined(_WIN32)
/*
* Note --- these structures cannot be modified without changing the
#define KRB5_KDB_DEF_FLAGS 0
-#endif /* !defined(macintosh) &&!defined(_WIN32) */
+#endif /* !defined(_WIN32) */
#endif /* KRB5_KDB5__ */
#ifndef KRB5_KDB5_DBC__
#define KRB5_KDB5_DBC__
-#if !defined(macintosh)
-
#include "kdb.h"
/* Per-database context. */
krb5_error_code krb5_dbm_db_get_mkey
(krb5_context,krb5_db_context *,krb5_encrypt_block **);
-#endif /* !defined(macintosh) */
#endif /* KRB5_KDB5_DBM__ */
#ifndef KRB5_KDB5_KT_H
#define KRB5_KDB5_KT_H
-#if !defined(macintosh)
-
#include "kdb.h"
extern struct _krb5_kt_ops krb5_kt_kdb_ops;
krb5_error_code krb5_ktkdb_set_context(krb5_context);
-#endif /* !defined(macintosh) */
#endif /* KRB5_KDB5_DBM__ */
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * gssapi.hin: Don't test macintosh or __MWERKS__.
+
2004-06-16 Ken Raeburn <raeburn@mit.edu>
* util_validate.c (g_save): Call gssint_initialize_library.
* Determine platform-dependent configuration.
*/
-#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
+#if defined(__MACH__) && defined(__APPLE__)
# include <TargetConditionals.h>
# if TARGET_RT_MAC_CFM
# error "Use KfM 4.0 SDK headers for CFM compilation."
#endif /* __cplusplus */
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import on
-# endif
# pragma options align=mac68k
#endif
);
#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import reset
-# endif
# pragma options align=reset
#endif
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * g_initialize.c, oid_ops.c: Don't test macintosh.
+ * mechglue.h: Don't test __MWERKS__, applec, THINK_C.
+
2004-06-16 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (all-mac, clean-mac): Targets deleted.
#endif /* USE_SOLARIS_SHARED_LIBRARIES */
-#if !defined(macintosh)
if (__gss_mechs_array == NULL) { /* this is very bad! */
fprintf(stderr,"gss_initialize fatal error: no mechanisms loaded!\n");
exit(-1);
}
-#else
- /*
- * Nothing for now, since this should never happen using static
- * mechanism loading.
- */
-#endif
return;
}
#ifndef _GSS_MECHGLUE_H
#define _GSS_MECHGLUE_H
-#if defined(__MWERKS__) || defined(applec) || defined(THINK_C)
-#include <gssapi.h>
-#else
#include <gssapi/gssapi.h>
-#endif
/********************************************************/
/* GSSAPI Extension functions -- these functions aren't */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#ifndef macintosh
#include <gssapi/gssapi_generic.h>
-#else
-#include <gssapi_generic.h>
-#endif
#include <errno.h>
#include <ctype.h>
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * g_pw_in_tkt.c (passwd_to_key): Don't test macintosh.
+ * kadm_net.c (SIGNAL): Don't test macintosh.
+
2004-06-16 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (check-mac): Target deleted.
char *user, *instance, *realm, *passwd;
C_Block key;
{
-#if defined(_WIN32) || defined(macintosh)
+#if defined(_WIN32)
string_to_key(passwd, key);
#else /* unix */
#ifdef NOENCRYPTION
#include "prot.h"
/* XXX FIXME! */
-#if defined(_WIN32) || defined(macintosh)
+#if defined(_WIN32)
#define SIGNAL(s, f) 0
#else
#define SIGNAL(s, f) signal(s, f)
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * cc_file.c (my_fopen): Don't test macintosh.
+
2004-06-21 Jeffrey Altman <jaltman@mit.edu>
* cc_mslsa.c: Comment out call to FormatMessage() which fails
#ifdef USE_STDIO
static FILE *my_fopen(char *path, char *mode)
{
-#ifdef macintosh
-/*
- * Kludge for the Macintosh, since fopen doesn't set errno, but open
- * does...
- */
- int fd, open_flags;
- FILE *f;
-
- f = fopen(path, mode);
- if (f)
- return f;
- /*
- * OK, fopen failed; let's try to figure out why....
- */
- if (strchr(mode, '+'))
- open_flags = O_RDWR;
- else if (strchr(mode, 'w') || strchr(mode, 'a'))
- open_flags = O_WRONLY;
- else
- open_flags = O_RDONLY;
- if (strchr(mode, 'a'))
- open_flags |= O_APPEND;
-
- fd = open(path, open_flags);
- if (fd == -1)
- return NULL;
- /*
- * fopen failed, but open succeeded? W*E*I*R*D.....
- */
- close(fd);
- errno = KRB5_CC_IO;
-
- return NULL;
-#else
return fopen(path, mode);
-#endif
}
#endif
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * stdcc_util.c (dupK5toCC): Don't test macintosh.
+
2003-07-17 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (LIBNAME) [##WIN16##]: Don't define.
cc_creds *c;
int err;
krb5_int32 offset_seconds = 0, offset_microseconds = 0;
-#ifdef macintosh
- char *tempname = NULL;
-#endif
if (cu == NULL) return;
(*cu)->cred.pV5Cred = c;
/* convert krb5 principals to flat principals */
-#ifdef macintosh
- /*
- * and make sure the memory for c->client and c->server is on
- * the system heap with NewPtr for the Mac (krb5_unparse_name
- * puts it in appl heap with malloc)
- */
- err = krb5_unparse_name(context, creds->client, &tempname);
- c->client = malloc(strlen(tempname)+1);
- if (c->client != NULL)
- strcpy(c->client,tempname);
- free(tempname);
- tempname = NULL;
-
- err = krb5_unparse_name(context, creds->server, &tempname);
- c->server = malloc(strlen(tempname)+1);
- if (c->server != NULL)
- strcpy(c->server,tempname);
- free(tempname);
-#else
err = krb5_unparse_name(context, creds->client, &(c->client));
err = krb5_unparse_name(context, creds->server, &(c->server));
-#endif
if (err) return;
/* copy more fields */
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * kt_file.c (krb5_ktf_keytab_externalize,
+ krb5_ktf_keytab_internalize): Don't test macintosh.
+
2004-06-15 Ken Raeburn <raeburn@mit.edu>
* kt_file.c (krb5_kt_default_vno): Replaced variable with macro.
int fflags = 0;
file_is_open = 1;
-#if !defined( macintosh) && !defined(_WIN32)
+#if !defined(_WIN32)
fflags = fcntl(fileno(ktdata->openf), F_GETFL, 0);
if (fflags > 0)
file_is_open |= ((fflags & O_ACCMODE) << 1);
int fmode;
long fpos;
-#if !defined( macintosh) && !defined(_WIN32)
+#if !defined(_WIN32)
fmode = (file_is_open >> 1) & O_ACCMODE;
#else
fmode = 0;
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * parse.c (krb5_parse_name): Don't test macintosh.
+
2004-06-04 Ken Raeburn <raeburn@mit.edu>
* str_conv.c (krb5_string_to_timestamp): Use localtime_r if
if (krb5_princ_size(context, principal) > i)
krb5_princ_component(context, principal, i)->length = size;
if (i + 1 != components) {
-#if !defined(_WIN32) && !defined(macintosh)
+#if !defined(_WIN32)
fprintf(stderr,
"Programming error in krb5_parse_name!");
#endif
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * an_to_ln.c (db_an_to_ln): Don't test macintosh.
+ * krbfileio.c (krb5_sync_disk_file): Likewise.
+ * kuserok.c: Likewise.
+ * prompter.c: Likewise.
+ * promptusr.c: Likewise.
+ * read_pwd.c: Likewise.
+
2004-06-15 Ken Raeburn <raeburn@mit.edu>
* c_ustime.c: Include k5-thread.h.
const unsigned int lnsize;
char *lname;
{
-#if (!defined(_WIN32) && !defined(macintosh))
+#if !defined(_WIN32)
DBM *db;
krb5_error_code retval;
datum key, contents;
krb5_sync_disk_file(krb5_context context, FILE *fp)
{
fflush(fp);
-#if !defined(MSDOS_FILESYSTEM) && !defined(macintosh)
+#if !defined(MSDOS_FILESYSTEM)
if (fsync(fileno(fp))) {
return errno;
}
*/
#include "k5-int.h"
-#if !defined(_WIN32) && !defined(macintosh) /* Not yet for Windows */
+#if !defined(_WIN32) /* Not yet for Windows */
#include <stdio.h>
#include <pwd.h>
return(isok);
}
-#else /* _WIN32 || macintosh */
+#else /* _WIN32 */
/*
* If the given Kerberos name "server" translates to the same name as "luser"
return FALSE;
}
-#endif /* _WIN32 || macintosh */
+#endif /* _WIN32 */
#include "k5-int.h"
-#if (!defined(_WIN32) || (defined(_WIN32) && defined(__CYGWIN32__))) && !defined(macintosh)
+#if !defined(_WIN32) || (defined(_WIN32) && defined(__CYGWIN32__))
#include <stdio.h>
#include <errno.h>
#include <signal.h>
*/
#include "k5-int.h"
-#if !defined(_WIN32) && !defined(macintosh)
+#if !defined(_WIN32)
#include <stdio.h>
#include <stdlib.h>
#endif
-#endif /* !_MSODS || _!MACINTOSH */
+#endif /* !_MSODS */
#include "k5-int.h"
-#if !defined(_WIN32) && !defined(macintosh)
+#if !defined(_WIN32)
#define DEFINED_KRB5_READ_PASSWORD
#include <stdio.h>
#include <errno.h>
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * getuid.c: Don't test __MWERKS__.
+ * syslog.c: Don't test macintosh.
+
2004-06-16 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (MACSRCS): Don't set.
/* Very simple getuid() for systems that don't have one. */
-#ifndef __MWERKS__
int
getuid()
{
return 42;
}
-#endif
* Modified to use UNIX domain IPC by Ralph Campbell
*/
-#if !defined(_WIN32) && !defined(macintosh)
+#if !defined(_WIN32)
#if defined(__STDC__) || defined(_WIN32)
#include <stdarg.h>
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * rc_io.c (krb5_rc_io_move, krb5_rc_io_sync): Don't test
+ macintosh.
+
2004-06-15 Ken Raeburn <raeburn@mit.edu>
* rc_io.c (dir, dirlen): Top-level variables deleted.
new1->fn = NULL; /* avoid clobbering */
(void) krb5_rc_io_close(context, new1);
new1->fn = fn;
-#ifdef macintosh
- new1->fd = fcntl(old->fd, F_DUPFD);
-#else
new1->fd = dup(old->fd);
-#endif
return 0;
#endif
}
#define fsync _commit
#endif
#endif
-#ifndef macintosh
if (fsync(d->fd) == -1) {
switch(errno)
{
default: return KRB5_RC_IO_UNKNOWN;
}
}
-#endif
return 0;
}
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * vfprintf.c: Don't test macintosh.
+
2004-06-18 Ken Raeburn <raeburn@mit.edu>
* Makefile.in ($(OUTPRE)test_et.exe): New target.
/* based on @(#)vfprintf.c 5.2 (Berkeley) 6/27/88 */
#include <stdio.h>
-#if !defined(macintosh)
#if defined(HAVE_STDARG_H) || defined(_WIN32)
#include <stdarg.h>
#else
return (ferror(iop) ? EOF : len);
}
-#endif
+2004-06-22 Ken Raeburn <raeburn@mit.edu>
+
+ * prof_int.h, prof_parse.c, profile.hin: Don't test macintosh or
+ __MWERKS__.
+
2004-06-18 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (SHLIB_EXPLIBS): Add $(LIBS).
#include <time.h>
#include <stdio.h>
-#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
+#if defined(__MACH__) && defined(__APPLE__)
#include <TargetConditionals.h>
#define PROFILE_SUPPORTS_FOREIGN_NEWLINES
#endif
#define EOL "\r\n"
#endif
-#ifdef macintosh
-#define EOL "\r"
-#endif
-
#ifndef EOL
#define EOL "\n"
#endif
#include <win-mac.h>
#endif
-#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
+#if defined(__MACH__) && defined(__APPLE__)
# include <TargetConditionals.h>
# if TARGET_RT_MAC_CFM
# error "Use KfM 4.0 SDK headers for CFM compilation."
extern "C" {
#endif /* __cplusplus */
-#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import on
-# endif
-#endif
-
typedef char* profile_filespec_t; /* path as C string */
typedef char* profile_filespec_list_t; /* list of : separated paths, C string */
typedef const char * const_profile_filespec_t; /* path as C string */
(profile_t profile, const char **names,
const char *new_value);
-#if TARGET_OS_MAC
-# if defined(__MWERKS__)
-# pragma import reset
-# endif
-#endif
-
#ifdef __cplusplus
}
#endif /* __cplusplus */