Lines Matching refs:auth

1479 	iscsi_auth_props_t	    *auth		= NULL;
3620 auth = (iscsi_auth_props_t *)kmem_zalloc(sizeof (*auth),
3622 if (ddi_copyin((caddr_t)arg, auth, sizeof (*auth), mode)) {
3623 kmem_free(auth, sizeof (*auth));
3626 } else if (auth->a_vers != ISCSI_INTERFACE_VERSION) {
3627 kmem_free(auth, sizeof (*auth));
3632 old_oid = auth->a_oid;
3634 if (auth->a_oid == ihp->hba_oid) {
3644 rtn = iscsi_sess_get(auth->a_oid, ihp, &isp);
3646 rtn = iscsi_sess_get_by_target(auth->a_oid,
3662 iscsi_targetparam_get_name(auth->a_oid);
3671 if (persistent_auth_get((char *)name, auth) == B_TRUE) {
3675 auth->a_oid = old_oid;
3676 rtn = ddi_copyout(auth, (caddr_t)arg,
3677 sizeof (*auth), mode);
3682 kmem_free(auth, sizeof (*auth));
3689 auth = (iscsi_auth_props_t *)kmem_zalloc(sizeof (*auth),
3691 if (ddi_copyin((caddr_t)arg, auth, sizeof (*auth), mode)) {
3692 kmem_free(auth, sizeof (*auth));
3695 } else if (auth->a_vers != ISCSI_INTERFACE_VERSION) {
3696 kmem_free(auth, sizeof (*auth));
3701 if (auth->a_oid == ihp->hba_oid) {
3710 rtn = iscsi_sess_get(auth->a_oid, ihp, &isp);
3712 rtn = iscsi_sess_get_by_target(auth->a_oid,
3728 iscsi_targetparam_get_name(auth->a_oid);
3735 } else if (persistent_auth_set((char *)name, auth)
3740 kmem_free(auth, sizeof (*auth));
3747 auth = (iscsi_auth_props_t *)kmem_alloc(sizeof (*auth),
3749 if (ddi_copyin((caddr_t)arg, auth, sizeof (*auth), mode)) {
3750 kmem_free(auth, sizeof (*auth));
3753 } else if (auth->a_vers != ISCSI_INTERFACE_VERSION) {
3754 kmem_free(auth, sizeof (*auth));
3765 rtn = iscsi_sess_get(auth->a_oid, ihp, &isp);
3767 rtn = iscsi_sess_get_by_target(auth->a_oid, ihp, &isp);
3782 iscsi_targetparam_get_name(auth->a_oid);
3804 (void) iscsi_targetparam_remove_target(auth->a_oid);
3807 kmem_free(auth, sizeof (*auth));
4425 bootProp->auth.a_auth_method = authMethodCHAP;
4434 bootProp->auth.a_bi_auth = B_TRUE;
4436 bootProp->auth.a_bi_auth = B_FALSE;