mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
43 lines
747 B
C
43 lines
747 B
C
#ifndef WSFS_ADAPTER_IMPL_AUTHENTICATOR_H
|
|
#define WSFS_ADAPTER_IMPL_AUTHENTICATOR_H
|
|
|
|
#ifndef __cplusplus
|
|
#include <stdbool.h>
|
|
#endif
|
|
|
|
#include "wsfs/adapter/impl/authenticate.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
struct credentials;
|
|
|
|
struct authenticator
|
|
{
|
|
char * type;
|
|
authenticate_fn * authenticate;
|
|
void * user_data;
|
|
struct authenticator * next;
|
|
};
|
|
|
|
extern struct authenticator * authenticator_create(
|
|
char const * type,
|
|
authenticate_fn * authenticate,
|
|
void * user_data);
|
|
|
|
extern void authenticator_dispose(
|
|
struct authenticator * authenticator);
|
|
|
|
extern bool authenticator_autenticate(
|
|
struct authenticator * authenticator,
|
|
struct credentials * credentials);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|