/* * x99_pwe.h * $Id: x99_pwe.h,v 1.6 2002/05/30 04:21:11 fcusack Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Copyright 2001,2002 Google, Inc. */ #ifndef X99_PWE_H #define X99_PWE_H /* Some hardcoding here ... because not all types have #defines */ #define PW_MS_CHAP_CHALLENGE ((311 << 16) | 11) #define PW_MS_CHAP_RESPONSE ((311 << 16) | 1) #define PW_MS_CHAP2_RESPONSE ((311 << 16) | 25) /* MPPE encryption policy */ #define MPPE_ENC_POL_ENCRYPTION_FORBIDDEN "0x00000000" #define MPPE_ENC_POL_ENCRYPTION_ALLOWED "0x00000001" #define MPPE_ENC_POL_ENCRYPTION_REQUIRED "0x00000002" /* MPPE encryption types */ #define MPPE_ENC_TYPES_RC4_40 "0x00000002" #define MPPE_ENC_TYPES_RC4_128 "0x00000004" #define MPPE_ENC_TYPES_RC4_40_128 "0x00000006" /* Translate the above into something easily usable. */ static const char *x99_mppe_policy[3] = { MPPE_ENC_POL_ENCRYPTION_FORBIDDEN, MPPE_ENC_POL_ENCRYPTION_ALLOWED, MPPE_ENC_POL_ENCRYPTION_REQUIRED }; static const char *x99_mppe_types[3] = { MPPE_ENC_TYPES_RC4_40, MPPE_ENC_TYPES_RC4_128, MPPE_ENC_TYPES_RC4_40_128 }; static void x99_key_from_hash(des_cblock *key,const unsigned char hashbytes[7]); #endif /* X99_PWE_H */