ext_password_i.h 713 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * External password backend - internal definitions
  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_I_H
  9. #define EXT_PASSWORD_I_H
  10. #include "ext_password.h"
  11. struct ext_password_backend {
  12. const char *name;
  13. void * (*init)(const char *params);
  14. void (*deinit)(void *ctx);
  15. struct wpabuf * (*get)(void *ctx, const char *name);
  16. };
  17. struct wpabuf * ext_password_alloc(size_t len);
  18. /* Available ext_password backends */
  19. #ifdef CONFIG_EXT_PASSWORD_TEST
  20. extern const struct ext_password_backend ext_password_test;
  21. #endif /* CONFIG_EXT_PASSWORD_TEST */
  22. #endif /* EXT_PASSWORD_I_H */