aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2003-03-06 20:02:21 +0000
committerAlexandra Ellwood <lxs@mit.edu>2003-03-06 20:02:21 +0000
commit842773045c5df3cdc3e50a8457451d6d1c54655e (patch)
tree414908036e0ff7d35be02ffc5f690ce0790a3036
parent72d8b6e214ede1f8ad38a75da74abba92b83f72e (diff)
downloadkrb5-842773045c5df3cdc3e50a8457451d6d1c54655e.zip
krb5-842773045c5df3cdc3e50a8457451d6d1c54655e.tar.gz
krb5-842773045c5df3cdc3e50a8457451d6d1c54655e.tar.bz2
* 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
-rw-r--r--src/include/ChangeLog13
-rw-r--r--src/include/k5-int.h13
-rw-r--r--src/include/krb5.hin8
3 files changed, 23 insertions, 11 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog
index d0ea27f..a8e7726 100644
--- a/src/include/ChangeLog
+++ b/src/include/ChangeLog
@@ -1,3 +1,16 @@
+2003-03-06 Alexandra Ellwood <lxs@mit.edu>
+
+ * 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 <raeburn@mit.edu>
* krb5.h (ENCTYPE_AES128_CTS_HMAC_SHA1_96,
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 82f2516..41c325d 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -174,6 +174,7 @@ typedef unsigned char u_char;
*/
#include <errno.h>
#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 <Kerberos/profile.h>
-#include <Kerberos/com_err.h> /* 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 c6f7040..eece828 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