+2002-06-15 Alexandra Ellwood <lxs@mit.edu>
+
+ * krb5.hin: Conditionalize KRB5_CALLCONV_WRONG separately
+ because gssapi.h defines KRB5_CALLCONV but doesn't need
+ KRB5_CALLCONV_WRONG
+ [pullup from 1-2-2-branch]
+
+2002-06-15 Danilo Almeida <dalmeida@mit.edu>
+
+ * krb5.hin: Rename krb5_kt_free_entry_contents as
+ krb5_free_keytab_entry_contents to make it consistent with rest of
+ API. Add KRB5_CALLCONV_WRONG. Fix up various calling
+ conventions. For Win32, add KT an CC accessors and default to not
+ PRIVATE.
+
+ * krb5.hin: Make krb5_build_principal_va() KRB5_CALLCONV.
+
+ [pullups from 1-2-2-branch]
+
+2002-06-15 Alexandra Ellwood <lxs@mit.edu>
+
+ * krb5.hin: Conditionalized pragmas for Metrowerks
+
+ * krb5.hin: Updated Mac OS X headers to new framework layout
+
+ [pullups from 1-2-2-branch]
+
+2002-06-15 Miro Jurisic <meeroh@mit.edu>
+
+ * krb5.hin: Updated Mac OS #defines
+ and #includes for new header layout and Mac OS X frameworks
+
+ [pullups from 1-2-2-branch]
+
2002-06-14 Alexandra Ellwood <lxs@mit.edu>
* k5-int.h: Added krb5_kt_dfl_ops for KRB5_KEYTAB_ACCESSOR_FUNCTIONS
#define KRB5_GENERAL__
#ifndef KRB5_DEPRECATED
-#define KRB5_DEPRECATED 1 /* Expose deprecated things for now. */
+#define KRB5_DEPRECATED 1 /* Expose deprecated things for now. */
#endif
-#if defined(_WIN32) || defined(macintosh)
-#include <win-mac.h>
-/* Macintoh CFM-68K magic incantation */
-#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
-#pragma import on
+#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
+ #include <TargetConditionals.h>
+ #if TARGET_RT_MAC_CFM
+ #error "Use KfM 4.0 SDK headers for CFM compilation."
+ #endif
+
+ #ifndef KRB5_PRIVATE /* Allow e.g. build system to override */
+ #define KRB5_PRIVATE 0
+ #endif
+#else
+#if defined(_WIN32)
+ #ifndef KRB5_PRIVATE
+ #define KRB5_PRIVATE 0
+ #endif
+#else
+ #ifndef KRB5_PRIVATE
+ #define KRB5_PRIVATE 1
+ #endif
#endif
#endif
+#if defined(_MSDOS) || defined(_WIN32)
+#include <win-mac.h>
+#endif
+
#ifndef KRB5_CONFIG__
#ifndef KRB5_CALLCONV
#define KRB5_CALLCONV
#endif /* !KRB5_CALLCONV */
#endif /* !KRB5_CONFIG__ */
+#ifndef KRB5_CALLCONV_WRONG
+#define KRB5_CALLCONV_WRONG
+#endif
+
#ifndef THREEPARAMOPEN
#define THREEPARAMOPEN(x,y,z) open(x,y,z)
#endif
#include <stdlib.h>
#include <limits.h> /* for *_MAX */
+#if TARGET_OS_MAC
+ #include <Kerberos/profile.h>
+#else
+ #include <profile.h>
+#endif
+
#ifndef KRB5INT_BEGIN_DECLS
#if defined(__cplusplus)
#define KRB5INT_BEGIN_DECLS extern "C" {
KRB5INT_BEGIN_DECLS
+#if TARGET_OS_MAC
+ #if defined(__MWERKS__)
+ #pragma import on
+ #pragma enumsalwaysint on
+ #endif
+ #pragma options align=mac68k
+#endif
+
/* from profile.h */
struct _profile_t;
/* typedef struct _profile_t *profile_t; */
krb5_error_code KRB5_CALLCONV krb5_set_principal_realm
(krb5_context, krb5_principal, const char *);
-krb5_boolean krb5_address_search
+krb5_boolean KRB5_CALLCONV_WRONG krb5_address_search
(krb5_context,
const krb5_address *,
krb5_address * const *);
-krb5_boolean krb5_address_compare
+krb5_boolean KRB5_CALLCONV_WRONG krb5_address_compare
(krb5_context,
const krb5_address *,
const krb5_address *);
(krb5_context, krb5_principal *, unsigned int, const char *, ...);
#ifdef va_start
/* XXX depending on varargs include file defining va_start... */
-krb5_error_code krb5_build_principal_va
+krb5_error_code KRB5_CALLCONV krb5_build_principal_va
(krb5_context,
krb5_principal, unsigned int, const char *, va_list);
#endif
krb5_auth_context,
krb5_int32 *);
-krb5_error_code krb5_auth_con_setaddrs
+krb5_error_code KRB5_CALLCONV_WRONG krb5_auth_con_setaddrs
(krb5_context,
krb5_auth_context,
krb5_address *,
krb5_auth_context,
krb5_rcache);
-krb5_error_code krb5_auth_con_getrcache
+krb5_error_code KRB5_CALLCONV_WRONG krb5_auth_con_getrcache
(krb5_context,
krb5_auth_context,
krb5_rcache *);
krb5_prompt_type* KRB5_CALLCONV krb5_get_prompt_types
(krb5_context context);
-KRB5INT_END_DECLS
-
-/* Macintoh CFM-68K magic incantation */
-#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
-#pragma import reset
+#if TARGET_OS_MAC
+ #if defined(__MWERKS__)
+ #pragma enumsalwaysint reset
+ #pragma import reset
+ #endif
+ #pragma options align=reset
#endif
+KRB5INT_END_DECLS
+
/* Don't use this! We're going to phase it out. It's just here to keep
applications from breaking right away. */
#define krb5_const const