Lines Matching refs:auth

949 	iscsi_auth_props_t auth;
955 (void) memset(&auth, 0, sizeof (iscsi_auth_props_t));
956 auth.a_vers = ISCSI_INTERFACE_VERSION;
957 auth.a_oid = (uint32_t)targetOid.objectSequenceNumber;
959 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
963 auth.a_bi_auth = (*bidirAuthFlag == IMA_TRUE) ? B_TRUE : B_FALSE;
964 if (ioctl(fd, ISCSI_AUTH_SET, &auth) != 0) {
982 iscsi_auth_props_t auth;
988 (void) memset(&auth, 0, sizeof (iscsi_auth_props_t));
989 auth.a_vers = ISCSI_INTERFACE_VERSION;
990 auth.a_oid = (uint32_t)targetOid.objectSequenceNumber;
992 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
997 *bidirAuthFlag = (auth.a_bi_auth == B_TRUE) ?
1085 * It could be that the auth data of this target has
2376 iscsi_auth_props_t auth;
2381 (void) memset(&auth, 0, sizeof (iscsi_auth_props_t));
2382 auth.a_vers = ISCSI_INTERFACE_VERSION;
2383 auth.a_oid = (uint32_t)oid.objectSequenceNumber;
2386 * Get the current auth fields so they don't need to be reset
2389 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
2391 /* Initializing auth structure with current settings */
2393 auth.a_auth_method = authMethodNone;
2398 auth.a_auth_method |= authMethodCHAP;
2405 if (ioctl(fd, ISCSI_AUTH_SET, &auth) != 0) {
2425 iscsi_auth_props_t auth;
2431 (void) memset(&auth, 0, sizeof (iscsi_auth_props_t));
2432 auth.a_vers = ISCSI_INTERFACE_VERSION;
2433 auth.a_oid = (uint32_t)oid.objectSequenceNumber;
2435 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
2442 if (auth.a_auth_method == authMethodNone) {
2447 if (!((auth.a_auth_method & authMethodCHAP)^authMethodCHAP)) {