1*f05cddf9SRui Paulo /* 2*f05cddf9SRui Paulo * External password backend 3*f05cddf9SRui Paulo * Copyright (c) 2012, Jouni Malinen <j@w1.fi> 4*f05cddf9SRui Paulo * 5*f05cddf9SRui Paulo * This software may be distributed under the terms of the BSD license. 6*f05cddf9SRui Paulo * See README for more details. 7*f05cddf9SRui Paulo */ 8*f05cddf9SRui Paulo 9*f05cddf9SRui Paulo #ifndef EXT_PASSWORD_H 10*f05cddf9SRui Paulo #define EXT_PASSWORD_H 11*f05cddf9SRui Paulo 12*f05cddf9SRui Paulo struct ext_password_data; 13*f05cddf9SRui Paulo 14*f05cddf9SRui Paulo #ifdef CONFIG_EXT_PASSWORD 15*f05cddf9SRui Paulo 16*f05cddf9SRui Paulo struct ext_password_data * ext_password_init(const char *backend, 17*f05cddf9SRui Paulo const char *params); 18*f05cddf9SRui Paulo void ext_password_deinit(struct ext_password_data *data); 19*f05cddf9SRui Paulo 20*f05cddf9SRui Paulo struct wpabuf * ext_password_get(struct ext_password_data *data, 21*f05cddf9SRui Paulo const char *name); 22*f05cddf9SRui Paulo void ext_password_free(struct wpabuf *pw); 23*f05cddf9SRui Paulo 24*f05cddf9SRui Paulo #else /* CONFIG_EXT_PASSWORD */ 25*f05cddf9SRui Paulo 26*f05cddf9SRui Paulo #define ext_password_init(b, p) ((void *) 1) 27*f05cddf9SRui Paulo #define ext_password_deinit(d) do { } while (0) 28*f05cddf9SRui Paulo #define ext_password_get(d, n) (NULL) 29*f05cddf9SRui Paulo #define ext_password_free(p) do { } while (0) 30*f05cddf9SRui Paulo 31*f05cddf9SRui Paulo #endif /* CONFIG_EXT_PASSWORD */ 32*f05cddf9SRui Paulo 33*f05cddf9SRui Paulo #endif /* EXT_PASSWORD_H */ 34