+Thu Feb 2 20:51:55 1995 Mark Eichin (eichin@cygnus.com)
+
+ * get_in_tkt.c (krb5_get_in_tkt): if krb5_is_as_rep fails, check
+ if the packet might be a V4 error packet. Use modified V4 check so
+ that it compiles under SCO.
+
Mon Jan 30 15:46:14 1995 Chris Provenzano (proven@mit.edu)
* int-proto.h Update prototypes for krb5_get_cred_via_tgt(), and
Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu)
- * Added krb5_context to all krb5_routines
+ * Added krb5_context to all krb5_routines
Mon Dec 19 21:55:44 1994 Theodore Y. Ts'o (tytso@dcl)
}
if (!krb5_is_as_rep(&reply)) {
- retval = KRB5KRB_AP_ERR_MSG_TYPE;
+/* these are in <kerberosIV/prot.h> as well but it isn't worth including. */
+#define V4_KRB_PROT_VERSION 4
+#define V4_AUTH_MSG_ERR_REPLY (5<<1)
+ /* check here for V4 reply */
+ unsigned int t_switch;
+
+ /* From v4 g_in_tkt.c: This used to be
+ switch (pkt_msg_type(rpkt) & ~1) {
+ but SCO 3.2v4 cc compiled that incorrectly. */
+ t_switch = reply.data[1]
+ t_switch &= ~1;
+
+ if (reply.data[0] == V4_KRB_PROT_VERSION
+ && t_switch == V4_AUTH_MSG_ERR_REPLY) {
+ retval = KRB5KRB_AP_ERR_V4_REPLY;
+ } else {
+ retval = KRB5KRB_AP_ERR_MSG_TYPE;
+ }
goto cleanup;
}
if (retval = decode_krb5_as_rep(&reply, &as_reply))