13ff40c12SJohn Marino /*
23ff40c12SJohn Marino  * External password backend - internal definitions
33ff40c12SJohn Marino  * Copyright (c) 2012, Jouni Malinen <j@w1.fi>
43ff40c12SJohn Marino  *
53ff40c12SJohn Marino  * This software may be distributed under the terms of the BSD license.
63ff40c12SJohn Marino  * See README for more details.
73ff40c12SJohn Marino  */
83ff40c12SJohn Marino 
93ff40c12SJohn Marino #ifndef EXT_PASSWORD_I_H
103ff40c12SJohn Marino #define EXT_PASSWORD_I_H
113ff40c12SJohn Marino 
123ff40c12SJohn Marino #include "ext_password.h"
133ff40c12SJohn Marino 
143ff40c12SJohn Marino struct ext_password_backend {
153ff40c12SJohn Marino 	const char *name;
163ff40c12SJohn Marino 	void * (*init)(const char *params);
173ff40c12SJohn Marino 	void (*deinit)(void *ctx);
183ff40c12SJohn Marino 	struct wpabuf * (*get)(void *ctx, const char *name);
193ff40c12SJohn Marino };
203ff40c12SJohn Marino 
213ff40c12SJohn Marino struct wpabuf * ext_password_alloc(size_t len);
223ff40c12SJohn Marino 
23*a1157835SDaniel Fojt /* Available ext_password backends */
24*a1157835SDaniel Fojt 
25*a1157835SDaniel Fojt #ifdef CONFIG_EXT_PASSWORD_TEST
26*a1157835SDaniel Fojt extern const struct ext_password_backend ext_password_test;
27*a1157835SDaniel Fojt #endif /* CONFIG_EXT_PASSWORD_TEST */
28*a1157835SDaniel Fojt 
293ff40c12SJohn Marino #endif /* EXT_PASSWORD_I_H */
30