From: Alexandra Ellwood Date: Thu, 6 Mar 2003 20:02:21 +0000 (+0000) Subject: * krb5.h: Removed enumsalwaysint because there are no typed enums in this header... X-Git-Tag: krb5-1.3-alpha1~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=842773045c5df3cdc3e50a8457451d6d1c54655e;p=krb5.git * krb5.h: Removed enumsalwaysint because there are no typed enums in this header. * k5-int.h: Removed Mac OS header goober. Added prototype for os_get_default_config_files which will be used by KfM's preference APIs (KFM needs to get the secure default files as well as the normal ones). Moved profile.h inclusion higher so it gets included before this function and thus its types are defined (the reason I put it where I did was there is another config file function next to it) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15247 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index d0ea27f22..a8e7726f5 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,16 @@ +2003-03-06 Alexandra Ellwood + + * krb5.h: Removed enumsalwaysint because there are no typed + enums in this header. + + * k5-int.h: Removed Mac OS header goober. Added prototype for + os_get_default_config_files which will be used by KfM's + preference APIs (KFM needs to get the secure default files as + well as the normal ones). Moved profile.h inclusion higher so + it gets included before this function and thus its types are + defined (the reason I put it where I did was there is another + config file function next to it). + 2003-03-04 Ken Raeburn * krb5.h (ENCTYPE_AES128_CTS_HMAC_SHA1_96, diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 82f25163a..41c325da1 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -174,6 +174,7 @@ typedef unsigned char u_char; */ #include #include "krb5.h" +#include "profile.h" #if 1 /* def NEED_SOCKETS */ #include "port-sockets.h" @@ -514,6 +515,11 @@ krb5_error_code krb5_os_init_context (krb5_context); void krb5_os_free_context (krb5_context); +/* This function is needed by KfM's KerberosPreferences API + * because it needs to be able to specify "secure" */ +krb5_error_code os_get_default_config_files + (profile_filespec_t **pfiles, krb5_boolean secure); + krb5_error_code krb5_find_config_files (void); krb5_error_code krb5_os_hostaddr @@ -969,12 +975,7 @@ void KRB5_CALLCONV krb5_free_pa_enc_ts (krb5_context, krb5_pa_enc_ts *); /* #include "krb5/wordsize.h" -- comes in through base-defs.h. */ -#if TARGET_OS_MAC -#include -#include /* Not included by Kerberos/profile.h */ -#else -#include "profile.h" -#endif +#include "com_err.h" struct _krb5_context { krb5_magic magic; diff --git a/src/include/krb5.hin b/src/include/krb5.hin index c6f7040a5..eece828f1 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -119,8 +119,7 @@ KRB5INT_BEGIN_DECLS #if TARGET_OS_MAC # if defined(__MWERKS__) -# pragma import on -# pragma enumsalwaysint on +# pragma import on # endif # pragma options align=mac68k #endif @@ -2555,10 +2554,9 @@ krb5_prompt_type* KRB5_CALLCONV krb5_get_prompt_types #if TARGET_OS_MAC # if defined(__MWERKS__) -# pragma enumsalwaysint reset -# pragma import reset +# pragma import reset # endif -# pragma options align=reset +# pragma options align=reset #endif KRB5INT_END_DECLS