]>
git.ipfire.org Git - thirdparty/hostap.git/blob - src/utils/ext_password.h
2 * External password backend
3 * Copyright (c) 2012, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
10 #define EXT_PASSWORD_H
12 struct ext_password_data
;
14 #ifdef CONFIG_EXT_PASSWORD
16 struct ext_password_data
* ext_password_init(const char *backend
,
18 void ext_password_deinit(struct ext_password_data
*data
);
20 struct wpabuf
* ext_password_get(struct ext_password_data
*data
,
22 void ext_password_free(struct wpabuf
*pw
);
24 #else /* CONFIG_EXT_PASSWORD */
26 #define ext_password_init(b, p) ((void *) 1)
27 #define ext_password_deinit(d) do { } while (0)
28 #define ext_password_get(d, n) (NULL)
29 #define ext_password_free(p) do { } while (0)
31 #endif /* CONFIG_EXT_PASSWORD */
33 #endif /* EXT_PASSWORD_H */