Lines Matching refs:auth
139 struct iscsi_node_auth *auth,
147 if (!(auth->naf_flags & NAF_USERID_SET) ||
148 !(auth->naf_flags & NAF_PASSWORD_SET)) {
210 struct iscsi_node_auth *auth,
284 compare_len = strlen(auth->userid) + 1;
285 if (strncmp(chap_n, auth->userid, compare_len) != 0) {
340 ret = crypto_shash_update(desc, (char *)&auth->password,
341 strlen(auth->password));
369 if (!auth->authenticate_target) {
454 ret = crypto_shash_update(desc, auth->password_mutual,
455 strlen(auth->password_mutual));
474 *nr_out_len = sprintf(nr_out_ptr, "CHAP_N=%s", auth->userid_mutual);
476 pr_debug("[server] Sending CHAP_N=%s\n", auth->userid_mutual);
501 struct iscsi_node_auth *auth,
510 chap = chap_server_open(conn, auth, in_text, out_text, out_len);
517 if (chap_server_compute_hash(conn, auth, in_text, out_text,
522 if (auth->authenticate_target)