Lines Matching refs:auth
91 static bool_t rpc_gss_init(AUTH *auth, rpc_gss_options_ret_t *options_ret);
147 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private)
197 AUTH *auth;
257 auth = rpc_gss_seccreate_int(clnt, cred, NULL, principal, mech_oid,
259 if (!auth)
262 gd = AUTH_PRIVATE(auth);
276 AUTH_DESTROY(auth);
287 return (auth);
336 rpc_gss_refresh_auth(AUTH *auth)
341 gd = AUTH_PRIVATE(auth);
350 (void) rpc_gss_init(auth, &options);
360 AUTH *auth;
383 auth = mem_alloc(sizeof(*auth));
384 if (auth == NULL) {
393 mem_free(auth, sizeof(*auth));
397 auth->ah_ops = &rpc_gss_ops;
398 auth->ah_private = (caddr_t) gd;
399 auth->ah_cred.oa_flavor = RPCSEC_GSS;
403 gd->gd_auth = auth;
432 if (!rpc_gss_init(auth, options_ret)) {
436 return (auth);
439 AUTH_DESTROY(auth);
444 rpc_gss_set_defaults(AUTH *auth, rpc_gss_service_t service, const char *qop)
450 gd = AUTH_PRIVATE(auth);
504 rpc_gss_nextverf(__unused AUTH *auth)
511 rpc_gss_marshal(AUTH *auth, uint32_t xid, XDR *xdrs, struct mbuf *args)
526 gd = AUTH_PRIVATE(auth);
582 rpc_gss_destroy_context(auth, TRUE);
616 rpc_gss_validate(AUTH *auth, uint32_t xid, struct opaque_auth *verf,
629 gd = AUTH_PRIVATE(auth);
697 rpc_gss_destroy_context(auth, TRUE);
738 rpc_gss_init(AUTH *auth, rpc_gss_options_ret_t *options_ret)
755 gd = AUTH_PRIVATE(auth);
899 ext.rc_auth = auth;
967 rpc_gss_destroy_context(auth, TRUE);
1017 rpc_gss_refresh(AUTH *auth, void *msg)
1023 gd = AUTH_PRIVATE(auth);
1045 rpc_gss_destroy_context(auth, FALSE);
1047 return (rpc_gss_init(auth, &options));
1054 rpc_gss_destroy_context(AUTH *auth, bool_t send_destroy)
1063 gd = AUTH_PRIVATE(auth);
1083 ext.rc_auth = auth;
1112 rpc_gss_destroy(AUTH *auth)
1118 gd = AUTH_PRIVATE(auth);
1123 rpc_gss_destroy_context(auth, TRUE);
1136 mem_free(auth, sizeof(*auth));
1140 rpc_gss_max_data_length(AUTH *auth, int max_tp_unit_len)
1148 gd = AUTH_PRIVATE(auth);