mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
52 lines
1.0 KiB
C
52 lines
1.0 KiB
C
#ifndef WSFS_ADAPTER_IMPL_AUTHENTICATORS_H
|
|
#define WSFS_ADAPTER_IMPL_AUTHENTICATORS_H
|
|
|
|
#ifndef __cplusplus
|
|
#include <stdbool.h>
|
|
#endif
|
|
|
|
#include "wsfs/adapter/impl/authenticate.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
struct authenticator;
|
|
struct credentials;
|
|
|
|
struct authenticators
|
|
{
|
|
struct authenticator * first;
|
|
};
|
|
|
|
extern void authenticators_init(
|
|
struct authenticators * authenticators);
|
|
|
|
extern void authenticators_cleanup(
|
|
struct authenticators * authenticators);
|
|
|
|
extern void authenticators_clone(
|
|
struct authenticators * authenticators,
|
|
struct authenticators * other);
|
|
|
|
extern void authenticators_move(
|
|
struct authenticators * authenticators,
|
|
struct authenticators * other);
|
|
|
|
extern void authenticators_add(
|
|
struct authenticators * authenticators,
|
|
char const * type,
|
|
authenticate_fn * authenticate,
|
|
void * user_data);
|
|
|
|
extern bool authenticators_authenticate(
|
|
struct authenticators * authenticators,
|
|
struct credentials * credentials);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|