1
0
mirror of https://github.com/falk-werner/webfused synced 2024-09-29 00:10:47 +00:00
falk-werner_webfused/src/webfused/auth/authenticator.h

41 lines
685 B
C
Raw Normal View History

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);
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