vici: Properly handle absence of peer ID on mediation connections
[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 radius_mppe radius_mppe
18 * @{ @ingroup libradius
19 */
20
21 #ifndef RADIUS_MPPE_H_
22 #define RADIUS_MPPE_H_
23
24 /**
25 * Microsoft specific vendor attributes
26 */
27 #define MS_MPPE_SEND_KEY 16
28 #define MS_MPPE_RECV_KEY 17
29
30 typedef struct mppe_key_t mppe_key_t;
31
32 struct mppe_key_t {
33 uint32_t id;
34 uint8_t type;
35 uint8_t length;
36 uint16_t salt;
37 uint8_t key[];
38 } __attribute__((packed));
39
40 #endif /** RADIUS_MPPE_H_ @}*/