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)) {
242 struct iscsi_node_auth *auth,
316 compare_len = strlen(auth->userid) + 1;
317 if (strncmp(chap_n, auth->userid, compare_len) != 0) {
383 ret = crypto_shash_update(desc, (char *)&auth->password,
384 strlen(auth->password));
412 if (!auth->authenticate_target) {
526 ret = crypto_shash_update(desc, auth->password_mutual,
527 strlen(auth->password_mutual));
546 *nr_out_len = sprintf(nr_out_ptr, "CHAP_N=%s", auth->userid_mutual);
548 pr_debug("[server] Sending CHAP_N=%s\n", auth->userid_mutual);
573 struct iscsi_node_auth *auth,
582 chap = chap_server_open(conn, auth, in_text, out_text, out_len);
589 if (chap_server_compute_hash(conn, auth, in_text, out_text,
594 if (auth->authenticate_target)