diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-03-13 23:26:15 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-03-13 23:26:15 +0100 |
commit | 6fd612913ea5d4b46a4bf53688300a90e126965e (patch) | |
tree | e796fa5b719fc1185038683513bf9735448a6494 /src/libradius/radius_mppe.h | |
parent | 5fdb8492937a9351960e44d8b26a8f105ed5d36e (diff) | |
download | strongswan-6fd612913ea5d4b46a4bf53688300a90e126965e.tar.bz2 strongswan-6fd612913ea5d4b46a4bf53688300a90e126965e.tar.xz |
implemented MS_MPPE encryption
Diffstat (limited to 'src/libradius/radius_mppe.h')
-rw-r--r-- | src/libradius/radius_mppe.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/libradius/radius_mppe.h b/src/libradius/radius_mppe.h new file mode 100644 index 000000000..0c4aae707 --- /dev/null +++ b/src/libradius/radius_mppe.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2012 Andreas Steffen + * HSR Hochschule fuer Technik Rapperswil + * + * 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. See <http://www.fsf.org/copyleft/gpl.txt>. + * + * 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. + */ + +/** + * @defgroup libradius libradius + * + * @addtogroup libradius + * RADIUS protocol support library. + * + * @defgroup radius_msse radius_msse + * @{ @ingroup libradius + */ + +#ifndef RADIUS_MSSE_H_ +#define RADIUS_MSSE_H_ + +/** + * Microsoft specific vendor attributes + */ +#define MS_MPPE_SEND_KEY 16 +#define MS_MPPE_RECV_KEY 17 + +typedef struct mppe_key_t mppe_key_t; + +struct mppe_key_t { + u_int32_t id; + u_int8_t type; + u_int8_t length; + u_int16_t salt; + u_int8_t key[]; +} __attribute__((packed)); + +#endif /** RADIUS_MSSE_H_ @}*/ |