Changeset 15710

Show
Ignore:
Timestamp:
03/05/01 17:22:03 (9 years ago)
Author:
ghudson
Message:

Revert last change; we're not ready to start enforcing checksums on
all operations yet.

Location:
trunk/athena/lib/zephyr
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/athena/lib/zephyr/h/internal.h

    r14271 r15710  
    2727#define HM_SRV_SVC_FALLBACK     htons((unsigned short) 2105) 
    2828 
     29#define ZAUTH_CKSUM_FAILED      (-2) /* Used only by server. */ 
    2930#define ZAUTH_UNSET             (-3) /* Internal to client library. */ 
    3031#define Z_MAXFRAGS              500     /* Max number of packet fragments */ 
  • trunk/athena/lib/zephyr/server/dispatch.c

    r15689 r15710  
    55 * 
    66 *      $Source: /afs/dev.mit.edu/source/repository/athena/lib/zephyr/server/dispatch.c,v $ 
    7  *      $Author: zacheiss $ 
     7 *      $Author: ghudson $ 
    88 * 
    99 *      Copyright (c) 1987, 1991 by the Massachusetts Institute of Technology. 
     
    1919#ifndef SABER 
    2020static const char rcsid_dispatch_c[] = 
    21 "$Id: dispatch.c,v 1.61 2001-02-27 04:47:10 zacheiss Exp $"; 
     21"$Id: dispatch.c,v 1.62 2001-03-05 22:22:03 ghudson Exp $"; 
    2222#endif 
    2323#endif 
     
    258258#endif 
    259259 
    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    } 
    261274 
    262275    if ((int) notice->z_kind < (int) UNSAFE || 
     
    312325        status = server_adispatch(notice, authflag, who, me_server); 
    313326    } else { 
     327        if (auth == ZAUTH_CKSUM_FAILED) 
     328            authflag = 0; 
    314329        if (!realm_bound_for_realm(ZGetRealm(), notice->z_recipient)) { 
    315330            cp = strchr(notice->z_recipient, '@');