1f05cddf9SRui Paulo /* 2f05cddf9SRui Paulo * External password backend - internal definitions 3f05cddf9SRui Paulo * Copyright (c) 2012, Jouni Malinen <j@w1.fi> 4f05cddf9SRui Paulo * 5f05cddf9SRui Paulo * This software may be distributed under the terms of the BSD license. 6f05cddf9SRui Paulo * See README for more details. 7f05cddf9SRui Paulo */ 8f05cddf9SRui Paulo 9f05cddf9SRui Paulo #ifndef EXT_PASSWORD_I_H 10f05cddf9SRui Paulo #define EXT_PASSWORD_I_H 11f05cddf9SRui Paulo 12f05cddf9SRui Paulo #include "ext_password.h" 13f05cddf9SRui Paulo 14f05cddf9SRui Paulo struct ext_password_backend { 15f05cddf9SRui Paulo const char *name; 16f05cddf9SRui Paulo void * (*init)(const char *params); 17f05cddf9SRui Paulo void (*deinit)(void *ctx); 18f05cddf9SRui Paulo struct wpabuf * (*get)(void *ctx, const char *name); 19f05cddf9SRui Paulo }; 20f05cddf9SRui Paulo 21f05cddf9SRui Paulo struct wpabuf * ext_password_alloc(size_t len); 22f05cddf9SRui Paulo 23780fb4a2SCy Schubert /* Available ext_password backends */ 24780fb4a2SCy Schubert 25780fb4a2SCy Schubert #ifdef CONFIG_EXT_PASSWORD_TEST 26780fb4a2SCy Schubert extern const struct ext_password_backend ext_password_test; 27780fb4a2SCy Schubert #endif /* CONFIG_EXT_PASSWORD_TEST */ 28780fb4a2SCy Schubert 29*c1d255d3SCy Schubert #ifdef CONFIG_EXT_PASSWORD_FILE 30*c1d255d3SCy Schubert extern const struct ext_password_backend ext_password_file; 31*c1d255d3SCy Schubert #endif /* CONFIG_EXT_PASSWORD_FILE */ 32*c1d255d3SCy Schubert 33f05cddf9SRui Paulo #endif /* EXT_PASSWORD_I_H */ 34