Lines Matching refs:auth

29  * $XConsortium: auth.c,v 1.17 89/12/14 09:42:18 rws Exp $
86 static void setAuthNumber (Xauth *auth, char *name);
87 static void DefineLocal (FILE *file, Xauth *auth);
88 static void DefineSelf (int fd, FILE *file, Xauth *auth);
89 static void writeAuth (FILE *file, Xauth *auth);
93 static void GenerateCryptoKey (char *auth, int len);
112 int resetForAuth; /* server reads auth file at reset */
238 dumpAuth (Xauth *auth)
240 printf ("family: %d\n", auth->family);
242 dumpBytes (auth->address_length, auth->address);
244 dumpBytes (auth->number_length, auth->number);
246 dumpBytes (auth->name_length, auth->name);
248 dumpBytes (auth->data_length, auth->data);
317 Xauth *auth,
322 setAuthNumber (auth, name);
329 DefineSelf (fd, file, auth);
334 DefineSelf (fd, file, auth);
338 DefineLocal (file, auth);
348 Xauth *auth)
351 auth->family = (unsigned short) family;
352 auth->address_length = addr_length;
353 auth->address = addr;
354 writeAuth (file, auth);
392 Xauth *auth)
486 writeAddr (family, len, addr, file, auth);
493 Xauth *auth)
513 writeAddr (FamilyLocal, strlen (displayname), displayname, file, auth);
560 Xauth *auth,
570 auth->number_length = dot - colon;
572 auth->number_length = strlen (colon);
573 number = malloc (auth->number_length + 1);
575 strncpy (number, colon, auth->number_length);
576 number[auth->number_length] = '\0';
579 auth->number_length = 0;
581 auth->number = number;
607 Xauth *auth)
609 saveAddr (auth->family, auth->address_length, auth->address,
610 auth->number_length, auth->number);
611 if (!XauWriteAuth (file, auth)) {
694 char *auth,
717 auth[i] = value & 0xff;
723 auth[i] = (
732 auth[len-1] = '\0';
738 Xauth *auth)
753 if (!XauWriteAuth (auth_file, auth) || fflush (auth_file) == EOF)
789 Xauth *auth = 0;
799 auth = (*a->GetAuth) (name_length, name);
801 return auth;
808 Xauth *auth;
818 auth = GenerateAuthorization ( d->authName, nl);
819 if (!auth)
825 if (SaveServerAuthorization (d->authFile, auth))
826 d->authorization = auth;
828 XauDisposeAuth (auth);
845 Xauth *entry, *auth;
849 if ((auth = d->authorization)) {
885 writeLocalAuth (new, auth, d->name);
928 fprintf(stderr,"usage: %s Server_auth_file [-auth protocol]\n",str);
965 if (argv[2] && strcmp(argv[2],"-auth") == 0) {