diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ChangeLog | 9 | ||||
| -rw-r--r-- | src/include/k5-int.h | 25 |
2 files changed, 34 insertions, 0 deletions
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 <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 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 { |
