Lines Matching refs:auth
79 static bool_t rpc_gss_init(AUTH *auth, rpc_gss_options_ret_t *options_ret);
115 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private)
124 AUTH *auth, *save_auth;
164 auth = mem_alloc(sizeof(*auth));
165 if (auth == NULL) {
174 free(auth);
178 auth->ah_ops = &rpc_gss_ops;
179 auth->ah_private = (caddr_t) gd;
180 auth->ah_cred.oa_flavor = RPCSEC_GSS;
212 clnt->cl_auth = auth;
213 if (!rpc_gss_init(auth, options_ret)) {
220 return (auth);
223 AUTH_DESTROY(auth);
228 rpc_gss_set_defaults(AUTH *auth, rpc_gss_service_t service, const char *qop)
234 gd = AUTH_PRIVATE(auth);
253 rpc_gss_nextverf(__unused AUTH *auth)
260 rpc_gss_marshal(__unused AUTH *auth, __unused XDR *xdrs)
268 rpc_gss_validate(AUTH *auth, struct opaque_auth *verf)
278 gd = AUTH_PRIVATE(auth);
312 rpc_gss_destroy_context(auth, TRUE);
321 rpc_gss_init(AUTH *auth, rpc_gss_options_ret_t *options_ret)
331 gd = AUTH_PRIVATE(auth);
448 rpc_gss_destroy_context(auth, TRUE);
488 rpc_gss_refresh(AUTH *auth, void *msg)
502 rpc_gss_destroy_context(auth, FALSE);
504 return (rpc_gss_init(auth, &options));
511 rpc_gss_destroy_context(AUTH *auth, bool_t send_destroy)
518 gd = AUTH_PRIVATE(auth);
542 rpc_gss_destroy(AUTH *auth)
549 gd = AUTH_PRIVATE(auth);
551 rpc_gss_destroy_context(auth, TRUE);
560 mem_free(auth, sizeof(*auth));
564 __rpc_gss_wrap(AUTH *auth, void *header, size_t headerlen,
578 gd = AUTH_PRIVATE(auth);
635 rpc_gss_destroy_context(auth, TRUE);
663 __rpc_gss_unwrap(AUTH *auth, XDR *xdrs, xdrproc_t xdr_func, void *xdr_ptr)
669 gd = AUTH_PRIVATE(auth);
681 rpc_gss_max_data_length(AUTH *auth, int max_tp_unit_len)
689 gd = AUTH_PRIVATE(auth);