~ubuntu-branches/ubuntu/gutsy/wpasupplicant/gutsy

« back to all changes in this revision

Viewing changes to src/rsn_supp/preauth.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Alexander Sack
  • Date: 2007-08-26 16:06:57 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070826160657-2m8pxoweuxe8f93t
Tags: 0.6.0+0.5.8-0ubuntu1
* New upstream release
* remove patch 11_erroneous_manpage_ref, applied upstream
* remove patch 25_wpas_dbus_unregister_iface_fix, applied upstream

[ Alexander Sack ]
* bumping upstream version to replace development version 0.6.0 with
  this package from stable release branch.
* attempt to fix wierd timeout and high latency issues by going
  back to stable upstream version (0.5.9) (LP: #140763,
  LP: #141233).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * wpa_supplicant - WPA2/RSN pre-authentication functions
3
 
 * Copyright (c) 2003-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 PREAUTH_H
16
 
#define PREAUTH_H
17
 
 
18
 
struct wpa_scan_result;
19
 
 
20
 
#ifndef CONFIG_NO_WPA
21
 
 
22
 
void pmksa_candidate_free(struct wpa_sm *sm);
23
 
 
24
 
#else /* CONFIG_NO_WPA */
25
 
 
26
 
static inline void pmksa_candidate_free(struct wpa_sm *sm)
27
 
{
28
 
}
29
 
 
30
 
#endif /* CONFIG_NO_WPA */
31
 
 
32
 
 
33
 
#if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA2)
34
 
 
35
 
int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
36
 
                     struct wpa_ssid *config);
37
 
void rsn_preauth_deinit(struct wpa_sm *sm);
38
 
void rsn_preauth_scan_results(struct wpa_sm *sm,
39
 
                              struct wpa_scan_result *results, int count);
40
 
void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
41
 
                         int prio, int preauth);
42
 
void rsn_preauth_candidate_process(struct wpa_sm *sm);
43
 
int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
44
 
                           int verbose);
45
 
int rsn_preauth_in_progress(struct wpa_sm *sm);
46
 
 
47
 
#else /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
48
 
 
49
 
static inline void rsn_preauth_candidate_process(struct wpa_sm *sm)
50
 
{
51
 
}
52
 
 
53
 
static inline int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
54
 
                                   struct wpa_ssid *config)
55
 
{
56
 
        return -1;
57
 
}
58
 
 
59
 
static inline void rsn_preauth_deinit(struct wpa_sm *sm)
60
 
{
61
 
}
62
 
static inline void rsn_preauth_scan_results(struct wpa_sm *sm,
63
 
                                            struct wpa_scan_result *results,
64
 
                                            int count)
65
 
{
66
 
}
67
 
 
68
 
static inline void pmksa_candidate_add(struct wpa_sm *sm,
69
 
                                       const u8 *bssid,
70
 
                                       int prio, int preauth)
71
 
{
72
 
}
73
 
 
74
 
static inline int rsn_preauth_get_status(struct wpa_sm *sm, char *buf,
75
 
                                         size_t buflen, int verbose)
76
 
{
77
 
        return 0;
78
 
}
79
 
 
80
 
static inline int rsn_preauth_in_progress(struct wpa_sm *sm)
81
 
{
82
 
        return 0;
83
 
}
84
 
 
85
 
#endif /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
86
 
 
87
 
#endif /* PREAUTH_H */