Lines Matching defs:auth
52 authstr_t auth;
55 (void) memset(&auth, 0, sizeof (authstr_t));
56 tmp = _getauthattr(&auth, buf, NSS_BUFLEN_AUTHATTR, &err);
66 authstr_t auth;
72 (void) memset(&auth, 0, sizeof (authstr_t));
73 tmp = _getauthnam(name, &auth, buf, NSS_BUFLEN_AUTHATTR, &err);
93 free_authattr(authattr_t *auth)
95 if (auth) {
96 free(auth->name);
97 free(auth->res1);
98 free(auth->res2);
99 free(auth->short_desc);
100 free(auth->long_desc);
101 _kva_free(auth->attr);
102 free(auth);
108 authstr2attr(authstr_t *auth)
112 if (auth == NULL)
118 newauth->name = _do_unescape(auth->name);
119 newauth->res1 = _do_unescape(auth->res1);
120 newauth->res2 = _do_unescape(auth->res2);
121 newauth->short_desc = _do_unescape(auth->short_desc);
122 newauth->long_desc = _do_unescape(auth->long_desc);
123 newauth->attr = _str2kva(auth->attr, KV_ASSIGN, KV_DELIMITER);
130 print_authattr(authattr_t *auth)
135 if (auth == NULL) {
140 printf("name=%s\n", auth->name ? auth->name : empty);
141 printf("res1=%s\n", auth->res1 ? auth->res1 : empty);
142 printf("res2=%s\n", auth->res2 ? auth->res2 : empty);
143 printf("short_desc=%s\n", auth->short_desc ? auth->short_desc : empty);
144 printf("long_desc=%s\n", auth->long_desc ? auth->long_desc : empty);
146 print_kva(auth->attr);