2012-08-03 20:28:42 +02:00
|
|
|
/*
|
|
|
|
* External password backend - internal definitions
|
|
|
|
* Copyright (c) 2012, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EXT_PASSWORD_I_H
|
|
|
|
#define EXT_PASSWORD_I_H
|
|
|
|
|
|
|
|
#include "ext_password.h"
|
|
|
|
|
|
|
|
struct ext_password_backend {
|
|
|
|
const char *name;
|
|
|
|
void * (*init)(const char *params);
|
|
|
|
void (*deinit)(void *ctx);
|
|
|
|
struct wpabuf * (*get)(void *ctx, const char *name);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wpabuf * ext_password_alloc(size_t len);
|
|
|
|
|
2016-06-24 16:30:26 +02:00
|
|
|
/* Available ext_password backends */
|
|
|
|
|
|
|
|
#ifdef CONFIG_EXT_PASSWORD_TEST
|
|
|
|
extern const struct ext_password_backend ext_password_test;
|
|
|
|
#endif /* CONFIG_EXT_PASSWORD_TEST */
|
|
|
|
|
2021-02-14 12:16:33 +01:00
|
|
|
#ifdef CONFIG_EXT_PASSWORD_FILE
|
|
|
|
extern const struct ext_password_backend ext_password_file;
|
|
|
|
#endif /* CONFIG_EXT_PASSWORD_FILE */
|
|
|
|
|
2012-08-03 20:28:42 +02:00
|
|
|
#endif /* EXT_PASSWORD_I_H */
|