krb.h: Add prototypes for krb_set_key() and decomp_ticket()
authorTheodore Tso <tytso@mit.edu>
Sat, 5 Dec 1998 21:39:30 +0000 (21:39 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 5 Dec 1998 21:39:30 +0000 (21:39 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11088 dc483132-0cff-0310-8789-dd5450dbe970

src/include/kerberosIV/ChangeLog
src/include/kerberosIV/krb.h

index 7e95e61458d000e4b9e96ef2de0c45acecef0a84..56cb7d27d6ac3433121e12690faa3121ca668c76 100644 (file)
@@ -1,3 +1,7 @@
+1998-12-05  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * krb.h: Add prototypes for krb_set_key() and decomp_ticket().
+
 1998-11-13  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * Makefile.in: Set the myfulldir and mydir variables (which are
index d49e77e21a5060440e580ad77a9b3314add1aea0..f18f42a04e70f1f46fa96f33b5f5d07f236b1ce8 100644 (file)
@@ -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);