From e374430baf1408c78f9c60c7b17a177ed2d92017 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 4 Dec 1998 08:16:22 +0000 Subject: [PATCH] krb5.hin: Add function prototypes for the new realm iterator functions. Also add some krb4 function prototypes to make catching prototype errors easier. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11060 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 6 ++++++ src/include/krb5.hin | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 4526bc04e..85dd28ffb 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +1998-12-04 Theodore Ts'o + + * krb5.hin: Add function prototypes for the new realm iterator + functions. Also add some krb4 function prototypes to make + catching prototype errors easier. + 1998-11-13 Theodore Ts'o * Makefile.in: Set the myfulldir and mydir variables (which are diff --git a/src/include/krb5.hin b/src/include/krb5.hin index 8b1d42f0d..2d846138d 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -2382,4 +2382,47 @@ KRB5_PROTOTYPE((krb5_context context, #pragma import reset #endif +/* + * The realm iterator functions + */ +KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_realm_iterator_create + PROTOTYPE((krb5_context context, void **iter_p)); + +KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_realm_iterator + PROTOTYPE((krb5_context context, void **iter_p, char **ret_realm)); + +KRB5_DLLIMP void KRB5_CALLCONV krb5_realm_iterator_free + PROTOTYPE((krb5_context context, void **iter_p)); + +KRB5_DLLIMP void KRB5_CALLCONV krb5_free_realm_string + PROTOTYPE((krb5_context context, char *str)); + +/* + * Kerberos V4 compatibility functions + */ +#ifndef __alpha +#define KRB5_K4_U32 unsigned long +#else +#define KRB5_K4_U32 unsigned int +#endif +typedef struct ktext *KTEXT; +typedef unsigned char des_cblock[8]; /* crypto-block size */ + +extern krb5_error_code krb54_get_service_keyblock + PROTOTYPE((char FAR *service, char FAR *instance, char FAR *realm, + int kvno, char FAR *file, + krb5_keyblock FAR * keyblock)); +extern int decomp_tkt_krb5 + PROTOTYPE((KTEXT tkt, unsigned char *flags, char *pname, + char *pinstance, char *prealm, KRB5_K4_U32 *paddress, + des_cblock session, int *life, KRB5_K4_U32 *time_sec, + char *sname, char *sinstance, krb5_keyblock *k5key)); +extern int krb_set_key_krb5 + PROTOTYPE ((krb5_context ctx, krb5_keyblock *key)); +void krb_clear_key_krb5 + PROTOTYPE ((krb5_context ctx)); + +#undef KRB5_K4_U32 + + #endif /* KRB5_GENERAL__ */ -- 2.26.2