xref: /freebsd/contrib/wpa/src/utils/ext_password_i.h (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1 /*
2  * External password backend - internal definitions
3  * Copyright (c) 2012, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef EXT_PASSWORD_I_H
10 #define EXT_PASSWORD_I_H
11 
12 #include "ext_password.h"
13 
14 struct ext_password_backend {
15 	const char *name;
16 	void * (*init)(const char *params);
17 	void (*deinit)(void *ctx);
18 	struct wpabuf * (*get)(void *ctx, const char *name);
19 };
20 
21 struct wpabuf * ext_password_alloc(size_t len);
22 
23 /* Available ext_password backends */
24 
25 #ifdef CONFIG_EXT_PASSWORD_TEST
26 extern const struct ext_password_backend ext_password_test;
27 #endif /* CONFIG_EXT_PASSWORD_TEST */
28 
29 #ifdef CONFIG_EXT_PASSWORD_FILE
30 extern const struct ext_password_backend ext_password_file;
31 #endif /* CONFIG_EXT_PASSWORD_FILE */
32 
33 #endif /* EXT_PASSWORD_I_H */
34