Lines Matching refs:auth

96 #define	AUTH_PRIVATE(auth)	((rpc_gss_data *)auth->ah_private)
101 * RPCSEC_GSS auth cache definitions.
110 * gss auth cache entry.
119 AUTH *auth;
141 * Initialize gss auth cache table lock
146 * Allocate gss auth cache handle
215 RPCGSS_LOG(2, "gssauth_cache_reclaim: destroy auth "
216 "%p\n", (void *)p->auth);
217 rpc_gss_destroy(p->auth);
266 AUTH *auth = NULL;
286 * Get a valid gss auth handle from the cache table.
287 * If auth in cache is invalid and not in use, destroy it.
305 ap = AUTH_PRIVATE(current->auth);
313 "refresh the auth\n");
319 rpc_gss_destroy(current->auth);
321 auth = NULL;
323 auth = current->auth;
333 * If no valid gss auth handle can be found in the cache, create
336 if (!auth) {
342 service_type, qop, options_req, options_ret, cr, &auth);
344 RPCGSS_LOG(2, "rpc_gss_secget: new auth %p\n",
345 (void *)auth);
361 new->auth = auth;
376 *retauth = auth;
384 * the auth handle is not in the cache table.
387 rpc_gss_secfree(AUTH *auth)
393 * Check the cache table to find the auth.
402 if (cur->auth == auth) {
411 RPCGSS_LOG(2, "rpc_gss_secfree: destroy auth %p\n", (void *)auth);
412 rpc_gss_destroy(auth);
428 AUTH **retauth) /* auth handle */
436 AUTH *auth = NULL;
459 if ((auth = (AUTH *) kmem_alloc(sizeof (*auth), KM_SLEEP)) != NULL)
461 if (auth == NULL || ap == NULL) {
463 if (auth != NULL)
464 kmem_free((char *)auth, sizeof (*auth));
492 if (error = rpc_gss_seccreate_pvt(&gssstat, &minor_stat, auth, ap,
498 kmem_free((char *)auth, sizeof (*auth));
511 rpc_gss_destroy(auth);
534 *retauth = auth;
543 rpc_gss_seccreate_pvt(gssstat, minor_stat, auth, ap, desired_mech_type,
547 AUTH *auth;
569 bzero((char *)auth, sizeof (*auth));
570 auth->ah_ops = &rpc_gss_ops;
571 auth->ah_private = (caddr_t)ap;
572 auth->ah_cred.oa_flavor = RPCSEC_GSS;
586 clnt->cl_auth = auth;
861 * auth private data.
868 rpc_gss_free_pvt(auth);
1013 rpc_gss_validate(auth, verf)
1014 AUTH *auth;
1017 rpc_gss_data *ap = AUTH_PRIVATE(auth);
1069 rpc_gss_refresh(auth, msg, cr)
1070 AUTH *auth;
1074 rpc_gss_data *ap = AUTH_PRIVATE(auth);
1129 error = rpc_gss_seccreate_pvt(&gssstat, &minor_stat, auth,
1136 "rpc_gss_refresh: auth %p refreshed\n", (void *)auth);
1168 "auth, error=%d\n", error);
1191 rpc_gss_destroy(auth)
1192 AUTH *auth;
1194 rpc_gss_data *ap = AUTH_PRIVATE(auth);
1202 rpc_gss_free_pvt(auth);
1204 kmem_free(auth, sizeof (*auth));
1212 rpc_gss_free_pvt(auth)
1213 AUTH *auth;
1216 rpc_gss_data *ap = AUTH_PRIVATE(auth);
1278 rpc_gss_destroy_pvt(auth)
1279 AUTH *auth;
1282 rpc_gss_data *ap = AUTH_PRIVATE(auth);
1302 rpc_gss_free_pvt(auth);
1312 rpc_gss_wrap(auth, buf, buflen, out_xdrs, xdr_func, xdr_ptr)
1313 AUTH *auth;
1321 rpc_gss_data *ap = AUTH_PRIVATE(auth);
1412 rpc_gss_unwrap(auth, in_xdrs, xdr_func, xdr_ptr)
1413 AUTH *auth;
1418 rpc_gss_data *ap = AUTH_PRIVATE(auth);
1457 ap = AUTH_PRIVATE(cur->auth);
1463 "auth %p\n", (void *)cur->auth);
1467 "auth %p\n", (void *)cur->auth);
1468 rpc_gss_destroy(cur->auth);
1513 RPCGSS_LOG(2, "rpc_gss_secpurge: destroy auth "
1514 "%p\n", (void *)cur->auth);
1516 rpc_gss_destroy(cur->auth);
1546 rpc_gss_marshall(auth, xdrs)
1547 AUTH *auth;
1559 rpc_gss_set_defaults(auth, service, qop)
1560 AUTH *auth;
1575 rpc_gss_get_service_type(AUTH *auth)
1577 rpc_gss_data *ap = AUTH_PRIVATE(auth);