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