~ubuntu-branches/ubuntu/vivid/wpasupplicant/vivid

« back to all changes in this revision

Viewing changes to eap_ttls.h

  • Committer: Bazaar Package Importer
  • Author(s): Kel Modderman
  • Date: 2008-03-12 20:03:04 UTC
  • mfrom: (1.1.10 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080312200304-4331y9wj46pdd34z
Tags: 0.6.3-1
* New upstream release.
* Drop patches applied upstream:
  - debian/patches/30_wpa_gui_qt4_eventhistoryui_rework.patch
  - debian/patches/31_wpa_gui_qt4_eventhistory_always_scrollbar.patch
  - debian/patches/32_wpa_gui_qt4_eventhistory_scroll_with_events.patch
  - debian/patches/40_dbus_ssid_data.patch
* Tidy up the clean target of debian/rules. Now that the madwifi headers are
  handled differently we no longer need to do any cleanup.
* Fix formatting error in debian/ifupdown/wpa_action.8 to make lintian
  quieter.
* Add patch to fix formatting errors in manpages build from sgml source. Use
  <emphasis> tags to hightlight keywords instead of surrounding them in
  strong quotes.
  - debian/patches/41_manpage_format_fixes.patch
* wpasupplicant binary package no longer suggests pcscd, guessnet, iproute
  or wireless-tools, nor does it recommend dhcp3-client. These are not
  needed.
* Add debian/patches/10_silence_siocsiwauth_icotl_failure.patch to disable
  ioctl failure messages that occur under normal conditions.
* Cherry pick two upstream git commits concerning the dbus interface:
  - debian/patches/11_avoid_dbus_version_namespace.patch
  - debian/patches/12_fix_potential_use_after_free.patch
* Add debian/patches/42_manpage_explain_available_drivers.patch to explain
  that not all of the driver backends are available in the provided
  wpa_supplicant binary, and that the canonical list of supported driver
  backends can be retrieved from the wpa_supplicant -h (help) output.
  (Closes: #466910)
* Add debian/patches/20_wpa_gui_qt4_disable_link_prl.patch to remove
  link_prl CONFIG compile flag added by qmake-qt4 >= 4.3.4-2 to avoid excess
  linking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * EAP server/peer: EAP-TTLS (draft-ietf-pppext-eap-ttls-03.txt)
3
 
 * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License version 2 as
7
 
 * published by the Free Software Foundation.
8
 
 *
9
 
 * Alternatively, this software may be distributed under the terms of BSD
10
 
 * license.
11
 
 *
12
 
 * See README and COPYING for more details.
13
 
 */
14
 
 
15
 
#ifndef EAP_TTLS_H
16
 
#define EAP_TTLS_H
17
 
 
18
 
struct ttls_avp {
19
 
        u32 avp_code;
20
 
        u32 avp_length; /* 8-bit flags, 24-bit length;
21
 
                         * length includes AVP header */
22
 
        /* optional 32-bit Vendor-ID */
23
 
        /* Data */
24
 
};
25
 
 
26
 
struct ttls_avp_vendor {
27
 
        u32 avp_code;
28
 
        u32 avp_length; /* 8-bit flags, 24-bit length;
29
 
                         * length includes AVP header */
30
 
        u32 vendor_id;
31
 
        /* Data */
32
 
};
33
 
 
34
 
#define AVP_FLAGS_VENDOR 0x80
35
 
#define AVP_FLAGS_MANDATORY 0x40
36
 
 
37
 
#define AVP_PAD(start, pos) \
38
 
do { \
39
 
        int __pad; \
40
 
        __pad = (4 - (((pos) - (start)) & 3)) & 3; \
41
 
        os_memset((pos), 0, __pad); \
42
 
        pos += __pad; \
43
 
} while (0)
44
 
 
45
 
 
46
 
/* RFC 2865 */
47
 
#define RADIUS_ATTR_USER_NAME 1
48
 
#define RADIUS_ATTR_USER_PASSWORD 2
49
 
#define RADIUS_ATTR_CHAP_PASSWORD 3
50
 
#define RADIUS_ATTR_REPLY_MESSAGE 18
51
 
#define RADIUS_ATTR_CHAP_CHALLENGE 60
52
 
#define RADIUS_ATTR_EAP_MESSAGE 79
53
 
 
54
 
/* RFC 2548 */
55
 
#define RADIUS_VENDOR_ID_MICROSOFT 311
56
 
#define RADIUS_ATTR_MS_CHAP_RESPONSE 1
57
 
#define RADIUS_ATTR_MS_CHAP_ERROR 2
58
 
#define RADIUS_ATTR_MS_CHAP_NT_ENC_PW 6
59
 
#define RADIUS_ATTR_MS_CHAP_CHALLENGE 11
60
 
#define RADIUS_ATTR_MS_CHAP2_RESPONSE 25
61
 
#define RADIUS_ATTR_MS_CHAP2_SUCCESS 26
62
 
#define RADIUS_ATTR_MS_CHAP2_CPW 27
63
 
 
64
 
#define EAP_TTLS_MSCHAPV2_CHALLENGE_LEN 16
65
 
#define EAP_TTLS_MSCHAPV2_RESPONSE_LEN 50
66
 
#define EAP_TTLS_MSCHAP_CHALLENGE_LEN 8
67
 
#define EAP_TTLS_MSCHAP_RESPONSE_LEN 50
68
 
#define EAP_TTLS_CHAP_CHALLENGE_LEN 16
69
 
#define EAP_TTLS_CHAP_PASSWORD_LEN 16
70
 
 
71
 
#endif /* EAP_TTLS_H */