4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 * Copyright 2001,2002 Google, Inc.
19 * Copyright 2005,2006 TRI-D Systems, Inc.
26 RCSIDH(otp_mppe_h, "$Id$")
28 /* Some hardcoding here ... because not all types have #defines */
29 #define PW_MS_CHAP_CHALLENGE ((311 << 16) | 11)
30 #define PW_MS_CHAP_RESPONSE ((311 << 16) | 1)
31 #define PW_MS_CHAP2_RESPONSE ((311 << 16) | 25)
33 /* MPPE encryption policy */
34 #define MPPE_ENC_POL_ENCRYPTION_FORBIDDEN "0x00000000"
35 #define MPPE_ENC_POL_ENCRYPTION_ALLOWED "0x00000001"
36 #define MPPE_ENC_POL_ENCRYPTION_REQUIRED "0x00000002"
38 /* MPPE encryption types */
39 #define MPPE_ENC_TYPES_RC4_40 "0x00000002"
40 #define MPPE_ENC_TYPES_RC4_128 "0x00000004"
41 #define MPPE_ENC_TYPES_RC4_40_128 "0x00000006"
43 /* Translate the above into something easily usable. */
44 static const char *otp_mppe_policy[3] = {
45 MPPE_ENC_POL_ENCRYPTION_FORBIDDEN,
46 MPPE_ENC_POL_ENCRYPTION_ALLOWED,
47 MPPE_ENC_POL_ENCRYPTION_REQUIRED };
49 static const char *otp_mppe_types[3] = {
50 MPPE_ENC_TYPES_RC4_40,
51 MPPE_ENC_TYPES_RC4_128,
52 MPPE_ENC_TYPES_RC4_40_128 };
54 #endif /* OTP_MPPE_H */