1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/lib/wsfs/adapter/impl/authenticator.h
2019-03-24 03:25:29 +01:00

41 lines
736 B
C

#ifndef WSFS_ADAPTER_IMPL_AUTHENTICATOR_H
#define WSFS_ADAPTER_IMPL_AUTHENTICATOR_H
#ifndef __cplusplus
#include <stdbool.h>
#endif
#include "wsfs/adapter/authenticate.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct authenticator
{
char * type;
wsfs_authenticate_fn * authenticate;
void * user_data;
struct authenticator * next;
};
extern struct authenticator * authenticator_create(
char const * type,
wsfs_authenticate_fn * authenticate,
void * user_data);
extern void authenticator_dispose(
struct authenticator * authenticator);
extern bool authenticator_autenticate(
struct authenticator * authenticator,
struct wsfs_credentials * credentials);
#ifdef __cplusplus
}
#endif
#endif