Lines Matching refs:auth

111 	struct iscsi_node_auth *auth,  in chap_server_open()  argument
119 if (!(auth->naf_flags & NAF_USERID_SET) || in chap_server_open()
120 !(auth->naf_flags & NAF_PASSWORD_SET)) { in chap_server_open()
172 struct iscsi_node_auth *auth, in chap_server_compute_md5() argument
226 compare_len = strlen(auth->userid) + 1; in chap_server_compute_md5()
227 if (strncmp(chap_n, auth->userid, compare_len) != 0) { in chap_server_compute_md5()
271 sg_init_one(&sg, &auth->password, strlen(auth->password)); in chap_server_compute_md5()
272 ret = crypto_hash_update(&desc, &sg, strlen(auth->password)); in chap_server_compute_md5()
308 if (!auth->authenticate_target) { in chap_server_compute_md5()
400 sg_init_one(&sg, auth->password_mutual, in chap_server_compute_md5()
401 strlen(auth->password_mutual)); in chap_server_compute_md5()
402 ret = crypto_hash_update(&desc, &sg, strlen(auth->password_mutual)); in chap_server_compute_md5()
430 *nr_out_len = sprintf(nr_out_ptr, "CHAP_N=%s", auth->userid_mutual); in chap_server_compute_md5()
432 pr_debug("[server] Sending CHAP_N=%s\n", auth->userid_mutual); in chap_server_compute_md5()
450 struct iscsi_node_auth *auth, in chap_got_response() argument
459 if (chap_server_compute_md5(conn, auth, nr_in_ptr, in chap_got_response()
472 struct iscsi_node_auth *auth, in chap_main_loop() argument
481 chap = chap_server_open(conn, auth, in_text, out_text, out_len); in chap_main_loop()
488 if (chap_got_response(conn, auth, in_text, out_text, in chap_main_loop()
493 if (auth->authenticate_target) in chap_main_loop()