0c4aae7077dd9d659e664bd661325f5a110bb42e
[strongswan.git] / src / libradius / radius_mppe.h
1 /*
2 * Copyright (C) 2012 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup libradius libradius
18 *
19 * @addtogroup libradius
20 * RADIUS protocol support library.
21 *
22 * @defgroup radius_msse radius_msse
23 * @{ @ingroup libradius
24 */
25
26 #ifndef RADIUS_MSSE_H_
27 #define RADIUS_MSSE_H_
28
29 /**
30 * Microsoft specific vendor attributes
31 */
32 #define MS_MPPE_SEND_KEY 16
33 #define MS_MPPE_RECV_KEY 17
34
35 typedef struct mppe_key_t mppe_key_t;
36
37 struct mppe_key_t {
38 u_int32_t id;
39 u_int8_t type;
40 u_int8_t length;
41 u_int16_t salt;
42 u_int8_t key[];
43 } __attribute__((packed));
44
45 #endif /** RADIUS_MSSE_H_ @}*/