Lines Matching refs:au

86 	struct audata *au;  in authunix_create()  local
96 au = (struct audata *)bkmem_alloc(sizeof (*au)); in authunix_create()
97 if (au == NULL) { in authunix_create()
103 auth->ah_private = (caddr_t)au; in authunix_create()
106 auth->ah_verf = au->au_shcred = _null_auth; in authunix_create()
108 au->au_shfaults = 0; in authunix_create()
127 au->au_origcred.oa_length = len = XDR_GETPOS(&xdrs); in authunix_create()
128 au->au_origcred.oa_flavor = (uint_t)AUTH_UNIX; in authunix_create()
129 if ((au->au_origcred.oa_base = bkmem_alloc((uint_t)len)) == NULL) { in authunix_create()
132 (void) bcopy(mymem, au->au_origcred.oa_base, (uint_t)len); in authunix_create()
137 auth->ah_cred = au->au_origcred; in authunix_create()
156 struct audata *au = AUTH_PRIVATE(auth); in authunix_marshal() local
158 return (XDR_PUTBYTES(xdrs, au->au_marshed, au->au_mpos)); in authunix_marshal()
164 struct audata *au; in authunix_validate() local
168 au = AUTH_PRIVATE(auth); in authunix_validate()
174 if (xdr_opaque_auth(&xdrs, &au->au_shcred)) { in authunix_validate()
175 auth->ah_cred = au->au_shcred; in authunix_validate()
178 (void) xdr_opaque_auth(&xdrs, &au->au_shcred); in authunix_validate()
179 au->au_shcred.oa_base = 0; in authunix_validate()
180 auth->ah_cred = au->au_origcred; in authunix_validate()
192 struct audata *au = AUTH_PRIVATE(auth); in authunix_refresh() local
197 if (auth->ah_cred.oa_base == au->au_origcred.oa_base) { in authunix_refresh()
201 au->au_shfaults ++; in authunix_refresh()
206 xdrmem_create(&xdrs, au->au_origcred.oa_base, in authunix_refresh()
207 au->au_origcred.oa_length, XDR_DECODE); in authunix_refresh()
219 auth->ah_cred = au->au_origcred; in authunix_refresh()
232 struct audata *au = AUTH_PRIVATE(auth); in authunix_destroy() local
234 if (au->au_shcred.oa_base != NULL) in authunix_destroy()
235 bkmem_free(au->au_shcred.oa_base, au->au_shcred.oa_length); in authunix_destroy()
251 struct audata *au = AUTH_PRIVATE(auth); in marshal_new_auth() local
253 xdrmem_create(xdrs, au->au_marshed, MAX_AUTH_BYTES, XDR_ENCODE); in marshal_new_auth()
258 au->au_mpos = XDR_GETPOS(xdrs); in marshal_new_auth()