+2000-06-02 Ken Raeburn <raeburn@mit.edu>
+
+ * krb.h (krb4_swab16): Mask upper byte of input after shifting, in
+ case the input value is a signed short.
+
+2000-05-18 Ken Raeburn <raeburn@mit.edu>
+
+ * krb.h (krb4_swab32): Mask high byte of input value after
+ shifting, to avoid "time out of bounds" error when byte orders are
+ different and low byte of timestamp has its high bit set and the
+ timestamp is stored as a signed value.
+
+ * krb.h (krb_get_err_text): Don't use "errno" as an argument
+ name.
+
Mon Mar 15 15:58:34 1999 Tom Yu <tlyu@mit.edu>
* des.h: Fix GSS_DLLIMP.
/*
* New byte swapping routines, much cleaner
*/
-#define krb4_swab16(val) (((val) >> 8) | ((val) << 8))
-#define krb4_swab32(val) (((val)>>24) | (((val)>>8)&0xFF00) | \
+#define krb4_swab16(val) ((((val) >> 8)&0xFF) | ((val) << 8))
+#define krb4_swab32(val) ((((val)>>24)&0xFF) | (((val)>>8)&0xFF00) | \
(((val)<<8)&0xFF0000) | ((val)<<24))
/* Kerberos ticket flag field bit definitions */
PROTOTYPE((void));
/* err_txt.c */
KRB5_DLLIMP const char FAR * KRB5_CALLCONV krb_get_err_text
- PROTOTYPE((int errno));
+ PROTOTYPE((int errnum));
/* g_ad_tkt.c */
int get_ad_tkt
PROTOTYPE((char *service, char *sinst, char *realm, int lifetime));