Lines Matching refs:auth
202 XdmClientAuthDecode(const unsigned char *plain, XdmClientAuthPtr auth) in XdmClientAuthDecode() argument
208 auth->rho.data[i] = plain[j]; in XdmClientAuthDecode()
212 auth->client[i] = plain[j]; in XdmClientAuthDecode()
215 auth->time = 0; in XdmClientAuthDecode()
217 auth->time |= plain[j] << ((3 - i) << 3); in XdmClientAuthDecode()
369 XdmAuthorizationPtr auth; in XdmCheckCookie() local
379 for (auth = xdmAuth; auth; auth = auth->next) { in XdmCheckCookie()
380 XdmcpUnwrap((unsigned char *) cookie, (unsigned char *) &auth->key, in XdmCheckCookie()
383 XdmAuthorizationValidate(plain, cookie_length, &auth->rho, xclient, in XdmCheckCookie()
388 return auth->id; in XdmCheckCookie()
398 XdmAuthorizationPtr auth, next_auth; in XdmResetCookie() local
401 for (auth = xdmAuth; auth; auth = next_auth) { in XdmResetCookie()
402 next_auth = auth->next; in XdmResetCookie()
403 free(auth); in XdmResetCookie()
417 XdmAuthorizationPtr auth; in XdmFromID() local
419 for (auth = xdmAuth; auth; auth = auth->next) { in XdmFromID()
420 if (id == auth->id) { in XdmFromID()
422 *datap = (char *) &auth->rho; in XdmFromID()
432 XdmAuthorizationPtr auth; in XdmRemoveCookie() local
449 for (auth = xdmAuth; auth; auth = auth->next) { in XdmRemoveCookie()
450 if (XdmcpCompareKeys(rho_bits, &auth->rho) && in XdmRemoveCookie()
451 XdmcpCompareKeys(key_bits, &auth->key)) { in XdmRemoveCookie()
452 xdmAuth = auth->next; in XdmRemoveCookie()
453 free(auth); in XdmRemoveCookie()