From: Theodore Tso Date: Sat, 5 Dec 1998 21:39:30 +0000 (+0000) Subject: krb.h: Add prototypes for krb_set_key() and decomp_ticket() X-Git-Tag: krb5-1.1-beta1~433 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3ce5c36d01c630dceea3c8e0e00ea1386d5221ca;p=krb5.git krb.h: Add prototypes for krb_set_key() and decomp_ticket() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11088 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/kerberosIV/ChangeLog b/src/include/kerberosIV/ChangeLog index 7e95e6145..56cb7d27d 100644 --- a/src/include/kerberosIV/ChangeLog +++ b/src/include/kerberosIV/ChangeLog @@ -1,3 +1,7 @@ +1998-12-05 Theodore Ts'o + + * krb.h: Add prototypes for krb_set_key() and decomp_ticket(). + 1998-11-13 Theodore Ts'o * Makefile.in: Set the myfulldir and mydir variables (which are diff --git a/src/include/kerberosIV/krb.h b/src/include/kerberosIV/krb.h index d49e77e21..f18f42a04 100644 --- a/src/include/kerberosIV/krb.h +++ b/src/include/kerberosIV/krb.h @@ -334,6 +334,13 @@ typedef struct msg_dat MSG_DAT; x = (unsigned short) _krb_swap_sh_tmp; \ } +/* + * New byte swapping routines, much cleaner + */ +#define krb4_swab16(val) (((val) >> 8) | ((val) << 8)) +#define krb4_swab32(val) (((val)>>24) | (((val)>>8)&0xFF00) | \ + (((val)<<8)&0xFF0000) | ((val)<<24)) + /* Kerberos ticket flag field bit definitions */ #define K_FLAG_ORDER 0 /* bit 0 --> lsb */ #define K_FLAG_1 /* reserved */ @@ -631,6 +638,18 @@ char * tkt_string void krb_set_tkt_string PROTOTYPE((char *)); +/* + * Internal prototypes + */ +extern int krb_set_key + PROTOTYPE((char *key, int cvt)); +extern int decomp_ticket + PROTOTYPE((KTEXT tkt, unsigned char *flags, char *pname, + char *pinstance, char *prealm, unsigned KRB4_32 *paddress, + C_Block session, int *life, unsigned KRB4_32 *time_sec, + char *sname, char *sinstance, C_Block, + Key_schedule key_s)); + #ifdef _WINDOWS HINSTANCE get_lib_instance(void); unsigned int krb_get_notification_message(void);