#ifndef DSASL_CLIENT_H
#define DSASL_CLIENT_H
struct dsasl_client_settings {
/* authentication ID - must be set with most mechanisms */
const char *authid;
/* authorization ID (who to log in as, if authentication ID is a
master user) */
const char *authzid;
/* password - must be set with most mechanisms */
const char *password;
};
/* PLAIN mechanism always exists and can be accessed directly via this. */
extern const struct dsasl_client_mech dsasl_client_mech_plain;
const struct dsasl_client_settings *set);
/* Call for server input. */
const char **error_r);
/* Call for getting server output. Also used to get the initial SASL response
if supported by the protocol. */
const char **error_r);
/* Call for setting extra parameters for authentication, these are mechanism
dependent. -1 = error, 0 = not found, 1 = ok
value can be NULL. */
/* Call for getting extra result information.
-1 = error, 0 = not found, 1 = ok */
const char **error_r);
void dsasl_clients_init(void);
void dsasl_clients_deinit(void);
#endif