mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 02:34:23 +08:00
8dcf07be2d
Remove superfluous #include directives from the include/target/*.h files. Add missing #include directives to other *.h and *.c files. Use forward declarations for structures where possible. This change reduces the build time for make M=drivers/target on my laptop from 27.1s to 18.7s or by about 30%. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
38 lines
931 B
C
38 lines
931 B
C
#ifndef _ISCSI_CHAP_H_
|
|
#define _ISCSI_CHAP_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define CHAP_DIGEST_UNKNOWN 0
|
|
#define CHAP_DIGEST_MD5 5
|
|
#define CHAP_DIGEST_SHA 6
|
|
|
|
#define CHAP_CHALLENGE_LENGTH 16
|
|
#define CHAP_CHALLENGE_STR_LEN 4096
|
|
#define MAX_RESPONSE_LENGTH 64 /* sufficient for MD5 */
|
|
#define MAX_CHAP_N_SIZE 512
|
|
|
|
#define MD5_SIGNATURE_SIZE 16 /* 16 bytes in a MD5 message digest */
|
|
|
|
#define CHAP_STAGE_CLIENT_A 1
|
|
#define CHAP_STAGE_SERVER_AIC 2
|
|
#define CHAP_STAGE_CLIENT_NR 3
|
|
#define CHAP_STAGE_CLIENT_NRIC 4
|
|
#define CHAP_STAGE_SERVER_NR 5
|
|
|
|
struct iscsi_node_auth;
|
|
struct iscsi_conn;
|
|
|
|
extern u32 chap_main_loop(struct iscsi_conn *, struct iscsi_node_auth *, char *, char *,
|
|
int *, int *);
|
|
|
|
struct iscsi_chap {
|
|
unsigned char digest_type;
|
|
unsigned char id;
|
|
unsigned char challenge[CHAP_CHALLENGE_LENGTH];
|
|
unsigned int authenticate_target;
|
|
unsigned int chap_state;
|
|
} ____cacheline_aligned;
|
|
|
|
#endif /*** _ISCSI_CHAP_H_ ***/
|