Lines Matching refs:auth
2645 iscsi_auth_props_t auth;
2652 (void) memset(&auth, 0, sizeof (iscsi_auth_props_t));
2653 auth.a_vers = ISCSI_INTERFACE_VERSION;
2654 auth.a_oid = (uint32_t)oid.objectSequenceNumber;
2656 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
2660 auth.a_auth_method = authMethodNone;
2665 auth.a_auth_method |= authMethodCHAP;
2672 if (ioctl(fd, ISCSI_AUTH_SET, &auth) != 0) {
2692 iscsi_auth_props_t auth;
2705 (void) memset(&auth, 0, sizeof (iscsi_auth_props_t));
2706 auth.a_vers = ISCSI_INTERFACE_VERSION;
2707 auth.a_oid = (uint32_t)oid.objectSequenceNumber;
2709 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
2717 if (auth.a_auth_method == authMethodNone) {
2719 } else if (auth.a_auth_method & authMethodCHAP) {