ext_password.h 855 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * External password backend
  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. #ifndef EXT_PASSWORD_H
  9. #define EXT_PASSWORD_H
  10. struct ext_password_data;
  11. #ifdef CONFIG_EXT_PASSWORD
  12. struct ext_password_data * ext_password_init(const char *backend,
  13. const char *params);
  14. void ext_password_deinit(struct ext_password_data *data);
  15. struct wpabuf * ext_password_get(struct ext_password_data *data,
  16. const char *name);
  17. void ext_password_free(struct wpabuf *pw);
  18. #else /* CONFIG_EXT_PASSWORD */
  19. #define ext_password_init(b, p) ((void *) 1)
  20. #define ext_password_deinit(d) do { } while (0)
  21. #define ext_password_get(d, n) (NULL)
  22. #define ext_password_free(p) do { } while (0)
  23. #endif /* CONFIG_EXT_PASSWORD */
  24. #endif /* EXT_PASSWORD_H */