• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //from pppd.h, can't include it directly in the fuzzer because C -> C++ issues
2 #define	EAP_HEADERLEN	4
3 
4 /* EAP message codes. */
5 #define	EAP_REQUEST	1
6 #define	EAP_RESPONSE	2
7 #define	EAP_SUCCESS	3
8 #define	EAP_FAILURE	4
9 
10 /* EAP types */
11 #define	EAPT_IDENTITY		1
12 #define	EAPT_NOTIFICATION	2
13 #define	EAPT_NAK		3	/* (response only) */
14 #define	EAPT_MD5CHAP		4
15 #define	EAPT_OTP		5	/* One-Time Password; RFC 1938 */
16 #define	EAPT_TOKEN		6	/* Generic Token Card */
17 /* 7 and 8 are unassigned. */
18 #define	EAPT_RSA		9	/* RSA Public Key Authentication */
19 #define	EAPT_DSS		10	/* DSS Unilateral */
20 #define	EAPT_KEA		11	/* KEA */
21 #define	EAPT_KEA_VALIDATE	12	/* KEA-VALIDATE	*/
22 #define	EAPT_TLS		13	/* EAP-TLS */
23 #define	EAPT_DEFENDER		14	/* Defender Token (AXENT) */
24 #define	EAPT_W2K		15	/* Windows 2000 EAP */
25 #define	EAPT_ARCOT		16	/* Arcot Systems */
26 #define	EAPT_CISCOWIRELESS	17	/* Cisco Wireless */
27 #define	EAPT_NOKIACARD		18	/* Nokia IP smart card */
28 #define	EAPT_SRP		19	/* Secure Remote Password */
29 /* 20 is deprecated */
30 
31 /* EAP SRP-SHA1 Subtypes */
32 #define	EAPSRP_CHALLENGE	1	/* Request 1 - Challenge */
33 #define	EAPSRP_CKEY		1	/* Response 1 - Client Key */
34 #define	EAPSRP_SKEY		2	/* Request 2 - Server Key */
35 #define	EAPSRP_CVALIDATOR	2	/* Response 2 - Client Validator */
36 #define	EAPSRP_SVALIDATOR	3	/* Request 3 - Server Validator */
37 #define	EAPSRP_ACK		3	/* Response 3 - final ack */
38 #define	EAPSRP_LWRECHALLENGE	4	/* Req/resp 4 - Lightweight rechal */
39 
40 #define	SRPVAL_EBIT	0x00000001	/* Use shared key for ECP */
41 
42 #define	SRP_PSEUDO_ID	"pseudo_"
43 #define	SRP_PSEUDO_LEN	7
44 
45 #define MD5_SIGNATURE_SIZE	16
46 #define MIN_CHALLENGE_LENGTH	16
47 #define MAX_CHALLENGE_LENGTH	24
48 
49 void init();
50 void proxy_packet(uint8_t *data, int len);
51 
52 //override output so we don't write to a broken fd
output(int unit,unsigned char * p,int len)53 void output (int unit, unsigned char *p, int len)
54 {
55 
56 }
57