From: Danilo Almeida Date: Wed, 19 Jul 2000 17:06:07 +0000 (+0000) Subject: * k5-int.h: Add krb5int_accessor() and related definitions. X-Git-Tag: krb5-1.3-alpha1~1980 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ecedff5421ef2381ce7b6855a123c4f6583776d7;p=krb5.git * 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 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index c5c9cd6b0..6342ccbca 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,12 @@ +2000-07-19 Danilo Almeida + + * 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 * 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 71d017295..fe07edd18 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 {