1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-09-29 11:20:46 +00:00
falk-werner_webfuse-provider/lib/webfuse/adapter/impl/authenticators.h
2019-03-26 23:04:53 +01:00

52 lines
1.1 KiB
C

#ifndef WF_ADAPTER_IMPL_AUTHENTICATORS_H
#define WF_ADAPTER_IMPL_AUTHENTICATORS_H
#ifndef __cplusplus
#include <stdbool.h>
#endif
#include "webfuse/adapter/authenticate.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct wf_impl_authenticator;
struct wf_credentials;
struct wf_impl_authenticators
{
struct wf_impl_authenticator * first;
};
extern void wf_impl_authenticators_init(
struct wf_impl_authenticators * authenticators);
extern void wf_impl_authenticators_cleanup(
struct wf_impl_authenticators * authenticators);
extern void wf_impl_authenticators_clone(
struct wf_impl_authenticators * authenticators,
struct wf_impl_authenticators * other);
extern void wf_impl_authenticators_move(
struct wf_impl_authenticators * authenticators,
struct wf_impl_authenticators * other);
extern void wf_impl_authenticators_add(
struct wf_impl_authenticators * authenticators,
char const * type,
wf_authenticate_fn * authenticate,
void * user_data);
extern bool wf_impl_authenticators_authenticate(
struct wf_impl_authenticators * authenticators,
struct wf_credentials * credentials);
#ifdef __cplusplus
}
#endif
#endif