3
* $Id: otp_pwe.h,v 1.4.2.1 2005/12/08 01:30:51 fcusack Exp $
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
* Copyright 2001,2002 Google, Inc.
20
* Copyright 2005 TRI-D Systems, Inc.
26
/* Some hardcoding here ... because not all types have #defines */
27
#define PW_MS_CHAP_CHALLENGE ((311 << 16) | 11)
28
#define PW_MS_CHAP_RESPONSE ((311 << 16) | 1)
29
#define PW_MS_CHAP2_RESPONSE ((311 << 16) | 25)
31
/* MPPE encryption policy */
32
#define MPPE_ENC_POL_ENCRYPTION_FORBIDDEN "0x00000000"
33
#define MPPE_ENC_POL_ENCRYPTION_ALLOWED "0x00000001"
34
#define MPPE_ENC_POL_ENCRYPTION_REQUIRED "0x00000002"
36
/* MPPE encryption types */
37
#define MPPE_ENC_TYPES_RC4_40 "0x00000002"
38
#define MPPE_ENC_TYPES_RC4_128 "0x00000004"
39
#define MPPE_ENC_TYPES_RC4_40_128 "0x00000006"
41
/* Translate the above into something easily usable. */
42
static const char *otp_mppe_policy[3] = {
43
MPPE_ENC_POL_ENCRYPTION_FORBIDDEN,
44
MPPE_ENC_POL_ENCRYPTION_ALLOWED,
45
MPPE_ENC_POL_ENCRYPTION_REQUIRED };
47
static const char *otp_mppe_types[3] = {
48
MPPE_ENC_TYPES_RC4_40,
49
MPPE_ENC_TYPES_RC4_128,
50
MPPE_ENC_TYPES_RC4_40_128 };
52
static void otp_key_from_hash(des_cblock *, const unsigned char [7]);
54
#endif /* OTP_PWE_H */