Lines Matching refs:auth
410 struct iscsi_node_auth *auth = &nacl->node_auth; \
414 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
422 struct iscsi_node_auth *auth = &nacl->node_auth; \
426 if (count >= sizeof(auth->name)) \
428 snprintf(auth->name, sizeof(auth->name), "%s", page); \
429 if (!strncmp("NULL", auth->name, 4)) \
430 auth->naf_flags &= ~flags; \
432 auth->naf_flags |= flags; \
434 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
435 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
436 auth->authenticate_target = 1; \
438 auth->authenticate_target = 0; \
475 struct iscsi_node_auth *auth = &nacl->node_auth; \
480 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \
902 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
907 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
915 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
920 snprintf(auth->name, sizeof(auth->name), "%s", page); \
921 if (!(strncmp("NULL", auth->name, 4))) \
922 auth->naf_flags &= ~flags; \
924 auth->naf_flags |= flags; \
926 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
927 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
928 auth->authenticate_target = 1; \
930 auth->authenticate_target = 0; \
963 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
968 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \