Home | History | Annotate | Download | only in utils
      1 /*
      2  * External password backend
      3  * Copyright (c) 2012, Jouni Malinen <j (at) 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_H
     10 #define EXT_PASSWORD_H
     11 
     12 struct ext_password_data;
     13 
     14 #ifdef CONFIG_EXT_PASSWORD
     15 
     16 struct ext_password_data * ext_password_init(const char *backend,
     17 					     const char *params);
     18 void ext_password_deinit(struct ext_password_data *data);
     19 
     20 struct wpabuf * ext_password_get(struct ext_password_data *data,
     21 				 const char *name);
     22 void ext_password_free(struct wpabuf *pw);
     23 
     24 #else /* CONFIG_EXT_PASSWORD */
     25 
     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)
     30 
     31 #endif /* CONFIG_EXT_PASSWORD */
     32 
     33 #endif /* EXT_PASSWORD_H */
     34