3 AuthTreq
= 1, AuthChal
, AuthPass
, AuthOK
, AuthErr
, AuthMod
,
4 AuthTs
= 64, AuthTc
, AuthAs
, AuthAc
, AuthTp
, AuthHr
,
32 void setKey(unsigned char *key
, struct DES_ks
*sched
);
33 int _encrypt(unsigned char *buf
, int n
, char *key
);
34 int _decrypt(unsigned char *buf
, int n
, char *key
);
35 void getRand(char *buf
, int sz
);
37 int decTicketReq(char *buf
, struct ticketreq
*r
);
38 int encTicketReq(char *buf
, struct ticketreq
*r
);
39 int decTicket(char *buf
, struct ticket
*r
, char *key
);
40 int encTicket(char *buf
, struct ticket
*r
, char *key
);
41 int decAuth(char *buf
, struct auth
*r
, char *key
);
42 int encAuth(char *buf
, struct auth
*r
, char *key
);
44 int get(Npcfid
*fid
, char *buf
, int sz
);
45 int getline0(Npcfid
*fid
, char *buf
, int sz
);
46 int put(Npcfid
*fid
, char *buf
, int sz
);
47 int putline0(Npcfid
*fid
, char *fmt
, ...);
48 int err(char *msg
, int no
);
49 int getWord(char **buf
, char sep
, char **retbuf
);