2020-03-16 20:50:31 +00:00
|
|
|
#ifndef WFD_AUTH_AUTHENTICATOR_H
|
|
|
|
#define WFD_AUTH_AUTHENTICATOR_H
|
|
|
|
|
|
|
|
#include "webfuse/adapter/authenticate.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef void
|
|
|
|
wfd_authenticator_dispose_fn(
|
|
|
|
void * data);
|
|
|
|
|
|
|
|
struct wfd_authenticator_vtable
|
|
|
|
{
|
|
|
|
wfd_authenticator_dispose_fn * dispose;
|
|
|
|
wf_authenticate_fn * authenticate;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wfd_authenticator
|
|
|
|
{
|
|
|
|
struct wfd_authenticator_vtable const * vtable;
|
|
|
|
void * data;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern void
|
|
|
|
wfd_authenticator_dispose(
|
|
|
|
struct wfd_authenticator authenticator);
|
|
|
|
|
2020-03-17 12:17:33 +00:00
|
|
|
extern bool
|
|
|
|
wfd_authenticator_authenticate(
|
|
|
|
struct wfd_authenticator authenticator,
|
|
|
|
struct wf_credentials * credentials);
|
2020-03-16 20:50:31 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|