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

« back to all changes in this revision

Viewing changes to src/eap_peer/eap_fast_pac.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 peer method: EAP-FAST PAC file processing
 
3
 * Copyright (c) 2004-2007, 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_FAST_PAC_H
 
16
#define EAP_FAST_PAC_H
 
17
 
 
18
#include "eap_common/eap_fast_common.h"
 
19
 
 
20
struct eap_fast_pac {
 
21
        struct eap_fast_pac *next;
 
22
 
 
23
        u8 pac_key[EAP_FAST_PAC_KEY_LEN];
 
24
        u8 *pac_opaque;
 
25
        size_t pac_opaque_len;
 
26
        u8 *pac_info;
 
27
        size_t pac_info_len;
 
28
        u8 *a_id;
 
29
        size_t a_id_len;
 
30
        u8 *i_id;
 
31
        size_t i_id_len;
 
32
        u8 *a_id_info;
 
33
        size_t a_id_info_len;
 
34
        u16 pac_type;
 
35
};
 
36
 
 
37
 
 
38
void eap_fast_free_pac(struct eap_fast_pac *pac);
 
39
struct eap_fast_pac * eap_fast_get_pac(struct eap_fast_pac *pac_root,
 
40
                                       const u8 *a_id, size_t a_id_len,
 
41
                                       u16 pac_type);
 
42
int eap_fast_add_pac(struct eap_fast_pac **pac_root,
 
43
                     struct eap_fast_pac **pac_current,
 
44
                     struct eap_fast_pac *entry);
 
45
int eap_fast_load_pac(struct eap_sm *sm, struct eap_fast_pac **pac_root,
 
46
                      const char *pac_file);
 
47
int eap_fast_save_pac(struct eap_sm *sm, struct eap_fast_pac *pac_root,
 
48
                      const char *pac_file);
 
49
size_t eap_fast_pac_list_truncate(struct eap_fast_pac *pac_root,
 
50
                                  size_t max_len);
 
51
int eap_fast_load_pac_bin(struct eap_sm *sm, struct eap_fast_pac **pac_root,
 
52
                          const char *pac_file);
 
53
int eap_fast_save_pac_bin(struct eap_sm *sm, struct eap_fast_pac *pac_root,
 
54
                          const char *pac_file);
 
55
 
 
56
#endif /* EAP_FAST_PAC_H */