return 0;
return "MIT-MAGIC-COOKIE-1 data did not match"; } if (auth->fakeproto == X11_XDM) { unsigned long t; time_t tim; int i;  if (dlen != 24) return "XDM-AUTHORIZATION-1 data was wrong length"; if (peer_port == -1) return "cannot do XDM-AUTHORIZATION-1 without remote address data"; des_decrypt_xdmauth(auth->fakedata+9, data, 24); if (memcmp(auth->fakedata, data, 8) != 0) return "XDM-AUTHORIZATION-1 data failed check";  if (GET_32BIT_MSB_FIRST(data+8) != peer_ip) return "XDM-AUTHORIZATION-1 data failed check";    if ((int)GET_16BIT_MSB_FIRST(data+12) != peer_port) return "XDM-AUTHORIZATION-1 data failed check";    t = GET_32BIT_MSB_FIRST(data+14); for (i = 18; i < 24; i++) if (data[i] != 0)	        return "XDM-AUTHORIZATION-1 data failed check"; tim = time(NULL); if (abs(t - tim) > 20*60)       return "XDM-AUTHORIZATION-1 time stamp was too far out";
static int x11_verify(struct X11Auth *auth,		      char *proto, unsigned char *data, int dlen){    if (strcmp(proto, x11_authnames[auth->fakeproto]) != 0)	return 0;		       /* wrong protocol attempted */    if (auth->fakeproto == X11_MIT) {        if (dlen != auth->fakelen)            return 0;		       /* cookie was wrong length */        if (memcmp(auth->fakedata, data, dlen) != 0)            return 0;		       /* cookie was wrong cookie! */    }    /* implement other protocols here if ever required */    return 1;}