Lines Matching defs:auth

64 	authstr_t	*auth = ent;
79 auth->name = _strtok_escape(buf, sep, &last);
80 auth->res1 = _strtok_escape(NULL, sep, &last);
81 auth->res2 = _strtok_escape(NULL, sep, &last);
82 auth->short_desc = _strtok_escape(NULL, sep, &last);
83 auth->long_desc = _strtok_escape(NULL, sep, &last);
84 auth->attr = _strtok_escape(NULL, sep, &last);
144 authstr_t auth;
147 (void) memset(&auth, 0, sizeof (authstr_t));
148 tmp = _getauthattr(&auth, buf, NSS_BUFLEN_AUTHATTR, &err);
158 authstr_t auth;
164 (void) memset(&auth, 0, sizeof (authstr_t));
165 tmp = _getauthnam(name, &auth, buf, NSS_BUFLEN_AUTHATTR, &err);
170 free_authattr(authattr_t *auth)
172 if (auth) {
173 free(auth->name);
174 free(auth->res1);
175 free(auth->res2);
176 free(auth->short_desc);
177 free(auth->long_desc);
178 _kva_free(auth->attr);
179 free(auth);
185 _authstr2attr(authstr_t *auth)
189 if (auth == NULL)
195 newauth->name = _do_unescape(auth->name);
196 newauth->res1 = _do_unescape(auth->res1);
197 newauth->res2 = _do_unescape(auth->res2);
198 newauth->short_desc = _do_unescape(auth->short_desc);
199 newauth->long_desc = _do_unescape(auth->long_desc);
200 newauth->attr = _str2kva(auth->attr, KV_ASSIGN, KV_DELIMITER);
207 print_authattr(authattr_t *auth)
212 if (auth == NULL) {
217 printf("name=%s\n", auth->name ? auth->name : empty);
218 printf("res1=%s\n", auth->res1 ? auth->res1 : empty);
219 printf("res2=%s\n", auth->res2 ? auth->res2 : empty);
220 printf("short_desc=%s\n", auth->short_desc ? auth->short_desc : empty);
221 printf("long_desc=%s\n", auth->long_desc ? auth->long_desc : empty);
223 print_kva(auth->attr);