linux/drivers/target/iscsi/iscsi_target_auth.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ISCSI_CHAP_H_
#define _ISCSI_CHAP_H_

#include <linux/types.h>

#define CHAP_DIGEST_UNKNOWN
#define CHAP_DIGEST_MD5
#define CHAP_DIGEST_SHA1
#define CHAP_DIGEST_SHA256
#define CHAP_DIGEST_SHA3_256

#define MAX_CHAP_CHALLENGE_LEN
#define CHAP_CHALLENGE_STR_LEN
#define MAX_RESPONSE_LENGTH
#define MAX_CHAP_N_SIZE

#define MD5_SIGNATURE_SIZE
#define SHA1_SIGNATURE_SIZE
#define SHA256_SIGNATURE_SIZE
#define SHA3_256_SIGNATURE_SIZE

#define CHAP_STAGE_CLIENT_A
#define CHAP_STAGE_SERVER_AIC
#define CHAP_STAGE_CLIENT_NR
#define CHAP_STAGE_CLIENT_NRIC
#define CHAP_STAGE_SERVER_NR

struct iscsi_node_auth;
struct iscsit_conn;

extern u32 chap_main_loop(struct iscsit_conn *, struct iscsi_node_auth *, char *, char *,
				int *, int *);

struct iscsi_chap {} ____cacheline_aligned;

#endif   /*** _ISCSI_CHAP_H_ ***/