2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WF_ADAPTER_IMPL_AUTHENTICATOR_H
|
|
|
|
#define WF_ADAPTER_IMPL_AUTHENTICATOR_H
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stdbool.h>
|
|
|
|
#endif
|
|
|
|
|
2020-06-28 13:51:34 +00:00
|
|
|
#include "webfuse/authenticate.h"
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wf_credentials;
|
|
|
|
|
|
|
|
struct wf_impl_authenticator
|
|
|
|
{
|
|
|
|
char * type;
|
|
|
|
wf_authenticate_fn * authenticate;
|
|
|
|
void * user_data;
|
|
|
|
struct wf_impl_authenticator * next;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct wf_impl_authenticator * wf_impl_authenticator_create(
|
|
|
|
char const * type,
|
|
|
|
wf_authenticate_fn * authenticate,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
extern void wf_impl_authenticator_dispose(
|
|
|
|
struct wf_impl_authenticator * authenticator);
|
|
|
|
|
|
|
|
extern bool wf_impl_authenticator_autenticate(
|
|
|
|
struct wf_impl_authenticator * authenticator,
|
|
|
|
struct wf_credentials * credentials);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|