/* * ccp_mppc.h * * Written by Archie Cobbs * Copyright (c) 1998-1999 Whistle Communications, Inc. All rights reserved. * See ``COPYRIGHT.whistle'' */ #ifndef _CCP_MPPC_H_ #define _CCP_MPPC_H_ #include "defs.h" #include "mbuf.h" #include "comp.h" #include #ifdef __DragonFly__ #include #else #include #endif /* 56 bit MPPE support was only added in FreeBSD 4.5 */ #ifndef MPPE_56 #define MPPE_56_UNSUPPORTED #define MPPE_56 0x00000080 #undef MPPE_BITS #define MPPE_BITS 0x000000e0 #endif /* * DEFINITIONS */ struct mppcinfo { u_int32_t recv_bits; /* recv config bits */ u_int32_t xmit_bits; /* xmit config bits */ u_char xmit_key0[MPPE_KEY_LEN];/* xmit start key */ u_char recv_key0[MPPE_KEY_LEN];/* recv start key */ u_char self_msChal[CHAP_MSOFTv2_CHAL_LEN]; /* MSOFT challng */ u_char peer_msChal[CHAP_MSOFTv2_CHAL_LEN]; /* MSOFT challng */ u_char self_ntResp[CHAP_MSOFTv2_RESP_LEN]; /* MSOFT response */ u_char peer_ntResp[CHAP_MSOFTv2_RESP_LEN]; /* MSOFT response */ }; typedef struct mppcinfo *MppcInfo; /* * VARIABLES */ extern const struct comptype gCompMppcInfo; #endif