char *data, int datamaxlen)
char *data, int datamaxlen, int proto_id)
void *x11_invent_auth(char *proto, int protomaxlen,		     char *data, int datamaxlen){    struct X11Auth *auth = smalloc(sizeof(struct X11Auth));    char ourdata[64];    int i;    auth->fakeproto = X11_MIT;    /* MIT-MAGIC-COOKIE-1. Cookie size is 128 bits (16 bytes). */    auth->fakelen = 16;    for (i = 0; i < 16; i++)	auth->fakedata[i] = random_byte();    /* Now format for the recipient. */    strncpy(proto, x11_authnames[auth->fakeproto], protomaxlen);    ourdata[0] = '\0';    for (i = 0; i < auth->fakelen; i++)	sprintf(ourdata + strlen(ourdata), "%02x", auth->fakedata[i]);    strncpy(data, ourdata, datamaxlen);    return auth;}