#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <string.h>
#include <time.h>
#include "common.h"
#include "sha1.h"
#include "wpa.h"
#include "driver.h"
#include "eloop.h"
#include "wpa_supplicant.h"
#include "config.h"
#include "l2_packet.h"
#include "eapol_sm.h"
#include "preauth.h"
#include "wpa_i.h"
Include dependency graph for preauth.c:
Go to the source code of this file.
Defines | |
#define | PMKID_CANDIDATE_PRIO_SCAN 1000 |
Functions | |
rsn_pmksa_cache * | pmksa_cache_add (struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, struct wpa_ssid *ssid) |
Add a PMKSA cache entry. | |
void | pmksa_cache_free (struct wpa_sm *sm) |
Free all entries in PMKSA cache. | |
rsn_pmksa_cache * | pmksa_cache_get (struct wpa_sm *sm, const u8 *aa, const u8 *pmkid) |
Fetch a PMKSA cache entry. | |
void | pmksa_cache_notify_reconfig (struct wpa_sm *sm) |
Reconfiguration notification for PMKSA cache. | |
rsn_pmksa_cache * | pmksa_cache_get_current (struct wpa_sm *sm) |
Get the current used PMKSA entry. | |
void | pmksa_cache_clear_current (struct wpa_sm *sm) |
Clear the current PMKSA entry selection. | |
int | pmksa_cache_set_current (struct wpa_sm *sm, const u8 *pmkid, const u8 *bssid, struct wpa_ssid *ssid, int try_opportunistic) |
Set the current PMKSA entry selection. | |
int | pmksa_cache_list (struct wpa_sm *sm, char *buf, size_t len) |
Dump text list of entries in PMKSA cache. | |
void | pmksa_candidate_free (struct wpa_sm *sm) |
Free all entries in PMKSA candidate list. | |
int | rsn_preauth_init (struct wpa_sm *sm, const u8 *dst, struct wpa_ssid *config) |
Start new RSN pre-authentication. | |
void | rsn_preauth_deinit (struct wpa_sm *sm) |
Abort RSN pre-authentication. | |
void | rsn_preauth_candidate_process (struct wpa_sm *sm) |
Process PMKSA candidates. | |
void | pmksa_candidate_add (struct wpa_sm *sm, const u8 *bssid, int prio, int preauth) |
Add a new PMKSA candidate. | |
void | rsn_preauth_scan_results (struct wpa_sm *sm, struct wpa_scan_result *results, int count) |
Process scan results to find PMKSA candidates. | |
int | rsn_preauth_get_status (struct wpa_sm *sm, char *buf, size_t buflen, int verbose) |
Get pre-authentication status. | |
int | rsn_preauth_in_progress (struct wpa_sm *sm) |
Verify whether pre-authentication is in progress. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file preauth.c.
|
Add a PMKSA cache entry.
Definition at line 177 of file preauth.c. Here is the call graph for this function: |
|
Clear the current PMKSA entry selection.
|
|
Free all entries in PMKSA cache.
|
|
Fetch a PMKSA cache entry.
|
|
Get the current used PMKSA entry.
|
|
Dump text list of entries in PMKSA cache.
|
|
Reconfiguration notification for PMKSA cache.
|
|
Set the current PMKSA entry selection.
Definition at line 422 of file preauth.c. Here is the call graph for this function: |
|
Add a new PMKSA candidate.
Definition at line 787 of file preauth.c. Here is the call graph for this function: |
|
Free all entries in PMKSA candidate list.
|
|
Process PMKSA candidates.
Definition at line 723 of file preauth.c. Here is the call graph for this function: |
|
Abort RSN pre-authentication.
Definition at line 699 of file preauth.c. Here is the call graph for this function: |
|
Get pre-authentication status.
Definition at line 924 of file preauth.c. Here is the call graph for this function: |
|
Verify whether pre-authentication is in progress.
|
|
Start new RSN pre-authentication.
Definition at line 620 of file preauth.c. Here is the call graph for this function: |
|
Process scan results to find PMKSA candidates.
Definition at line 863 of file preauth.c. Here is the call graph for this function: |