~ubuntu-branches/ubuntu/intrepid/wpasupplicant/intrepid

« back to all changes in this revision

Viewing changes to eap_methods.h

  • Committer: Bazaar Package Importer
  • Author(s): Kel Modderman
  • Date: 2006-06-27 20:29:33 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060627202933-hy1vnckrb4bz62rd
Tags: 0.5.4-1
* New upstream release.
* WPA_CRTL_DIR environment variable is now exported to action scripts, we
  will use it to print a status report after a CONNECTED event.
* Make logfile contents easier to read by adding a break between each ACTION
  event.
* Recommend dhcp3-client, it handles consecutive wpa_action events with more
  grace than dhcp-client by not starting multiple dhclient processes on the
  same interface.
* Don't remove wpa_action logfile on 'stop'.
* Enhance wpa_action(8) to better explain the concept of a LOGICAL
  interface.
* Install wpa_passphrase to /bin. (Closes: #373948)
* Manpages have been slightly enhanced, and now briefly explain wpa_cli
  action environment variables and wpa_supplicant -C and -g options.
  (Closes: #372615)
* Rename wpa_cli daemon pidfile to wpa_action.IFACE.pid for wpa-roam.
* Further env variable testing cleanups to ifupdown.sh.
* Global rename of WPA_COMMON_CTRL_IFACE to WPA_CTRL_DIR, as this is used
  for the same purposes upstream.
* No longer penalise users for not having ctrl_interface explicitly
  contained within their wpa_supplicant.conf. (Closes: #375599)
* Move WPA_ACTION_SCRIPT sanity checking into init_wpa_supplicant() to avoid
  ifupdown.sh exiting when bringing down an interface when ifup previously
  failed due to a missing or non-executable action script.
* Add numerous code comments to ifupdown.sh.
* Move WPA_CLI_OPTIONS and WPA_SUP_OPTIONS into their respective init()
  functions.
* wpa_action now logs 'stop' events to file, updated manpage.
* Split wpa_action logging into two parts, event and environment. Only
  wpa_cli events will echo env var's.
* wpa_action exits with retval of ifdown command on 'stop' event.
* Add workaround for sendsigs (initscripts) terminating wpa_supplicant
  processes before networking is shutdown gracefully. An init script
  wpa-ifupdown is called at sequence number 15 in runlevels 0 and 6 to bring
  down all interfaces that were started via ifupdown.sh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * EAP peer: Method registration
 
3
 * Copyright (c) 2004-2006, Jouni Malinen <jkmaline@cc.hut.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_METHODS_H
 
16
#define EAP_METHODS_H
 
17
 
 
18
#include "eap_defs.h"
 
19
 
 
20
const struct eap_method * eap_sm_get_eap_methods(int vendor, EapType method);
 
21
const struct eap_method * eap_peer_get_methods(size_t *count);
 
22
 
 
23
struct eap_method * eap_peer_method_alloc(int version, int vendor,
 
24
                                          EapType method, const char *name);
 
25
void eap_peer_method_free(struct eap_method *method);
 
26
int eap_peer_method_register(struct eap_method *method);
 
27
 
 
28
 
 
29
#ifdef IEEE8021X_EAPOL
 
30
 
 
31
EapType eap_get_type(const char *name, int *vendor);
 
32
const char * eap_get_name(int vendor, EapType type);
 
33
size_t eap_get_names(char *buf, size_t buflen);
 
34
int eap_peer_register_methods(void);
 
35
void eap_peer_unregister_methods(void);
 
36
 
 
37
#else /* IEEE8021X_EAPOL */
 
38
 
 
39
static inline EapType eap_get_type(const char *name, int *vendor)
 
40
{
 
41
        *vendor = EAP_VENDOR_IETF;
 
42
        return EAP_TYPE_NONE;
 
43
}
 
44
 
 
45
static inline const char * eap_get_name(int vendor, EapType type)
 
46
{
 
47
        return NULL;
 
48
}
 
49
 
 
50
static inline size_t eap_get_names(char *buf, size_t buflen)
 
51
{
 
52
        return 0;
 
53
}
 
54
 
 
55
static inline int eap_peer_register_methods(void)
 
56
{
 
57
        return 0;
 
58
}
 
59
 
 
60
static inline void eap_peer_unregister_methods(void)
 
61
{
 
62
}
 
63
 
 
64
#endif /* IEEE8021X_EAPOL */
 
65
 
 
66
 
 
67
#ifdef CONFIG_DYNAMIC_EAP_METHODS
 
68
 
 
69
int eap_peer_method_load(const char *so);
 
70
int eap_peer_method_unload(struct eap_method *method);
 
71
 
 
72
#else /* CONFIG_DYNAMIC_EAP_METHODS */
 
73
 
 
74
static inline int eap_peer_method_load(const char *so)
 
75
{
 
76
        return 0;
 
77
}
 
78
 
 
79
static inline int eap_peer_method_unload(struct eap_method *method)
 
80
{
 
81
        return 0;
 
82
}
 
83
 
 
84
#endif /* CONFIG_DYNAMIC_EAP_METHODS */
 
85
 
 
86
#endif /* EAP_METHODS_H */