Lines Matching refs:uam
2 * $Id: uam.c,v 1.35 2009-11-08 01:15:31 didg Exp $
68 /* --- server uam functions -- */
134 /* -- client-side uam functions -- */
135 /* set up stuff for this uam. */
139 struct uam_obj *uam;
146 if ((uam = auth_uamfind(type, name, strlen(name)))) {
147 if (strcmp(uam->uam_path, path)) {
153 uam->uam_count++;
157 /* allocate space for uam */
158 if ((uam = calloc(1, sizeof(struct uam_obj))) == NULL)
161 uam->uam_name = name;
162 uam->uam_path = strdup(path);
163 uam->uam_count++;
168 uam->u.uam_login.login = va_arg(ap, void *);
169 uam->u.uam_login.logincont = va_arg(ap, void *);
170 uam->u.uam_login.logout = va_arg(ap, void *);
171 uam->u.uam_login.login_ext = va_arg(ap, void *);
175 uam->u.uam_login.login_ext = NULL;
176 uam->u.uam_login.login = va_arg(ap, void *);
177 uam->u.uam_login.logincont = va_arg(ap, void *);
178 uam->u.uam_login.logout = va_arg(ap, void *);
181 uam->u.uam_changepw = va_arg(ap, void *);
190 ret = auth_register(type, uam);
192 free(uam->uam_path);
193 free(uam);
201 struct uam_obj *uam;
206 uam = auth_uamfind(type, name, strlen(name));
207 if (!uam || --uam->uam_count > 0)
210 auth_unregister(uam);
211 free(uam->uam_path);
212 free(uam);
440 /* it's up to the uam to actually store something useful here.
441 * this just passes back a handle to the cookie. the uam side