Deleted Added
full compact
18c18
< * $Id: chap.h,v 1.10 1998/05/21 21:44:27 brian Exp $
---
> * $Id: chap.h,v 1.11 1999/02/06 02:54:44 brian Exp $
31a32,40
> struct descriptor desc;
> struct {
> pid_t pid;
> int fd;
> struct {
> char ptr[AUTHLEN * 2 + 3]; /* Allow for \r\n at the end (- NUL) */
> int len;
> } buf;
> } child;
37c46,48
< #define auth2chap(a) ((struct chap *)(a))
---
> #define descriptor2chap(d) \
> ((d)->type == CHAP_DESCRIPTOR ? (struct chap *)(d) : NULL)
> #define auth2chap(a) (struct chap *)((char *)a - (int)&((struct chap *)0)->auth)
39a51
> extern void chap_ReInit(struct chap *);