1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef ISCSI_TARGET_NEGO_H 3 #define ISCSI_TARGET_NEGO_H 4 5 #define DECIMAL 0 6 #define HEX 1 7 #define BASE64 2 8 9 struct iscsit_conn; 10 struct iscsi_login; 11 struct iscsi_np; 12 13 extern void convert_null_to_semi(char *, int); 14 extern int extract_param(const char *, const char *, unsigned int, char *, 15 unsigned char *); 16 extern int iscsi_target_check_login_request(struct iscsit_conn *, 17 struct iscsi_login *); 18 extern int iscsi_target_get_initial_payload(struct iscsit_conn *, 19 struct iscsi_login *); 20 extern int iscsi_target_locate_portal(struct iscsi_np *, struct iscsit_conn *, 21 struct iscsi_login *); 22 extern int iscsi_target_start_negotiation( 23 struct iscsi_login *, struct iscsit_conn *); 24 extern void iscsi_target_nego_release(struct iscsit_conn *); 25 extern bool iscsi_conn_auth_required(struct iscsit_conn *conn); 26 #endif /* ISCSI_TARGET_NEGO_H */ 27