mech.h revision 8222ce68120b51353a3b31d3073b5f845d0e9f53
#ifndef __MECH_H
#define __MECH_H
#include "auth-client-interface.h"
struct auth_client_connection;
const void *data,
struct auth_client_connection *conn);
struct auth_request {
int refcount;
char *user;
struct auth_client_connection *conn;
unsigned int id;
enum auth_protocol protocol;
struct auth_client_request_continue *request,
const unsigned char *data,
/* ... mechanism specific data ... */
};
struct mech_module {
unsigned int id,
};
extern enum auth_mech auth_mechanisms;
extern const char *const *auth_realms;
extern const char *default_realm;
extern const char *anonymous_username;
extern char username_chars[256];
extern int ssl_require_client_cert;
struct auth_client_request_new *request,
struct auth_client_request_continue *request,
const unsigned char *data,
struct auth_request *auth_request,
int mech_is_valid_username(const char *username);
void mech_cyrus_sasl_init_lib(void);
struct auth_request *
struct auth_client_request_new *request,
void mech_init(void);
void mech_deinit(void);
#endif