mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 18:58:21 -05:00
306ae22556
This new mechanism can be used to make wpa_supplicant using external storage (e.g., key store in the operating system) for passwords, passphrases, and PSKs. This commit is only adding the framework part needed to support this, i.e., no actual configuration parameter can yet use this new mechanism. In addition, only a simple test backend is added to allow developer testing of the functionality. Signed-hostap: Jouni Malinen <j@w1.fi>
34 lines
855 B
C
34 lines
855 B
C
/*
|
|
* External password backend
|
|
* Copyright (c) 2012, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef EXT_PASSWORD_H
|
|
#define EXT_PASSWORD_H
|
|
|
|
struct ext_password_data;
|
|
|
|
#ifdef CONFIG_EXT_PASSWORD
|
|
|
|
struct ext_password_data * ext_password_init(const char *backend,
|
|
const char *params);
|
|
void ext_password_deinit(struct ext_password_data *data);
|
|
|
|
struct wpabuf * ext_password_get(struct ext_password_data *data,
|
|
const char *name);
|
|
void ext_password_free(struct wpabuf *pw);
|
|
|
|
#else /* CONFIG_EXT_PASSWORD */
|
|
|
|
#define ext_password_init(b, p) ((void *) 1)
|
|
#define ext_password_deinit(d) do { } while (0)
|
|
#define ext_password_get(d, n) (NULL)
|
|
#define ext_password_free(p) do { } while (0)
|
|
|
|
#endif /* CONFIG_EXT_PASSWORD */
|
|
|
|
#endif /* EXT_PASSWORD_H */
|