aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorDanilo Almeida <dalmeida@mit.edu>2000-07-19 17:06:07 +0000
committerDanilo Almeida <dalmeida@mit.edu>2000-07-19 17:06:07 +0000
commitecedff5421ef2381ce7b6855a123c4f6583776d7 (patch)
tree87ce794e2ac4c98aa0af6ad79a3c5abd975e4d70 /src/include
parent3f1e3e0140620cc379c0f7ff9e4aacbcfa5bb78c (diff)
downloadkrb5-ecedff5421ef2381ce7b6855a123c4f6583776d7.zip
krb5-ecedff5421ef2381ce7b6855a123c4f6583776d7.tar.gz
krb5-ecedff5421ef2381ce7b6855a123c4f6583776d7.tar.bz2
* k5-int.h: Add krb5int_accessor() and related definitions.
krb5int_accessor should be used by any code that is trying to use krb5 internal functions (such as krb524 and GSSAPI). The goal is to eventually make this function do nothing. That will only be accomplished when we fix our apps/libraries not to call internal functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12559 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ChangeLog9
-rw-r--r--src/include/k5-int.h25
2 files changed, 34 insertions, 0 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog
index c5c9cd6..6342ccb 100644
--- a/src/include/ChangeLog
+++ b/src/include/ChangeLog
@@ -1,3 +1,12 @@
+2000-07-19 Danilo Almeida <dalmeida@mit.edu>
+
+ * k5-int.h: Add krb5int_accessor() and related definitions.
+ krb5int_accessor should be used by any code that is trying to use
+ krb5 internal functions (such as krb524 and GSSAPI). The goal is
+ to eventually make this function do nothing. That will only be
+ accomplished when we fix our apps/libraries not to call internal
+ functions.
+
2000-07-18 Ezra Peisach <epeisach@mit.edu>
* k5-int.h: Move prototypes for krb5 only internal functions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 71d0172..fe07edd 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -1531,6 +1531,31 @@ int krb5_seteuid KRB5_PROTOTYPE((int));
/* to keep lint happy */
#define krb5_xfree(val) free((char FAR *)(val))
+/* To keep happy libraries which are (for now) accessing internal stuff */
+
+/* Make sure to increment by one when changing the struct */
+#define KRB5INT_ACCESS_STRUCT_VERSION 1
+
+typedef struct _krb5int_access {
+ krb5_error_code (*krb5_locate_kdc)
+ PROTOTYPE((krb5_context,
+ const krb5_data *,
+ struct sockaddr **,
+ int *,
+ int));
+ int krb5_max_skdc_timeout;
+ int krb5_skdc_timeout_shift;
+ int krb5_skdc_timeout_1;
+ int krb5_max_dgram_size;
+} krb5int_access;
+
+#define KRB5INT_ACCESS_VERSION \
+ (((krb5_int32)((sizeof(krb5int_access) & 0xFFFF) | \
+ (KRB5INT_ACCESS_STRUCT_VERSION << 16))) & 0xFFFFFFFF)
+
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5int_accessor
+ PROTOTYPE((krb5int_access*, krb5_int32));
+
/* temporary -- this should be under lib/krb5/ccache somewhere */
struct _krb5_ccache {