Changeset 15710
- Timestamp:
- 03/05/01 17:22:03 (9 years ago)
- Location:
- trunk/athena/lib/zephyr
- Files:
-
- 2 modified
-
h/internal.h (modified) (1 diff)
-
server/dispatch.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/athena/lib/zephyr/h/internal.h
r14271 r15710 27 27 #define HM_SRV_SVC_FALLBACK htons((unsigned short) 2105) 28 28 29 #define ZAUTH_CKSUM_FAILED (-2) /* Used only by server. */ 29 30 #define ZAUTH_UNSET (-3) /* Internal to client library. */ 30 31 #define Z_MAXFRAGS 500 /* Max number of packet fragments */ -
trunk/athena/lib/zephyr/server/dispatch.c
r15689 r15710 5 5 * 6 6 * $Source: /afs/dev.mit.edu/source/repository/athena/lib/zephyr/server/dispatch.c,v $ 7 * $Author: zacheiss$7 * $Author: ghudson $ 8 8 * 9 9 * Copyright (c) 1987, 1991 by the Massachusetts Institute of Technology. … … 19 19 #ifndef SABER 20 20 static const char rcsid_dispatch_c[] = 21 "$Id: dispatch.c,v 1.6 1 2001-02-27 04:47:10 zacheissExp $";21 "$Id: dispatch.c,v 1.62 2001-03-05 22:22:03 ghudson Exp $"; 22 22 #endif 23 23 #endif … … 258 258 #endif 259 259 260 authflag = (auth == ZAUTH_YES); 260 /* Set "authflag" to 1 or 0 for handler functions. Treat 261 * ZAUTH_CKSUM_FAILED as authentic except for sendit(), which is 262 * handled below. */ 263 switch (auth) { 264 case ZAUTH_YES: 265 case ZAUTH_CKSUM_FAILED: 266 authflag = 1; 267 break; 268 case ZAUTH_FAILED: 269 case ZAUTH_NO: 270 default: 271 authflag = 0; 272 break; 273 } 261 274 262 275 if ((int) notice->z_kind < (int) UNSAFE || … … 312 325 status = server_adispatch(notice, authflag, who, me_server); 313 326 } else { 327 if (auth == ZAUTH_CKSUM_FAILED) 328 authflag = 0; 314 329 if (!realm_bound_for_realm(ZGetRealm(), notice->z_recipient)) { 315 330 cp = strchr(notice->z_recipient, '@');
