57 static const struct ImapAuth imap_authenticators[] = {
89 const struct ImapAuth *auth = &imap_authenticators[i];
121 const struct ImapAuth *auth = &imap_authenticators[i];
146 mutt_error(
_(
"No authenticators available or wrong credentials"));
const char * method
Name of authentication method supported, NULL means variable.
struct Slist * C_ImapAuthenticators
Config: (imap) List of allowed IMAP authentication methods.
enum ImapAuthRes imap_auth_login(struct ImapAccountData *adata, const char *method)
Plain LOGIN support - Implements ImapAuth::authenticate()
IMAP authenticator multiplexor.
#define mutt_array_size(x)
enum ImapAuthRes imap_auth_plain(struct ImapAccountData *adata, const char *method)
SASL PLAIN support - Implements ImapAuth::authenticate()
Shared constants/structs that are private to IMAP.
enum ImapAuthRes imap_auth_anon(struct ImapAccountData *adata, const char *method)
Authenticate anonymously - Implements ImapAuth::authenticate()
bool mutt_istr_equal(const char *a, const char *b)
Compare two strings, ignoring case.
enum ImapAuthRes imap_auth_sasl(struct ImapAccountData *adata, const char *method)
Default authenticator if available - Implements ImapAuth::authenticate()
ImapAuthRes
Results of IMAP Authentication.
bool imap_auth_is_valid(const char *authenticator)
Check if string is a valid imap authentication method.
enum ImapAuthRes(* authenticate)(struct ImapAccountData *adata, const char *method)
Authenticate an IMAP connection.
void * adata
Private data (for Mailbox backends)
#define STAILQ_FOREACH(var, head, field)
IMAP authentication multiplexor.
IMAP-specific Account data -.
int imap_authenticate(struct ImapAccountData *adata)
Authenticate to an IMAP server.
#define mutt_debug(LEVEL,...)
enum ImapAuthRes imap_auth_oauth(struct ImapAccountData *adata, const char *method)
Authenticate an IMAP connection using OAUTHBEARER - Implements ImapAuth::authenticate() ...
Convenience wrapper for the library headers.
enum ImapAuthRes imap_auth_cram_md5(struct ImapAccountData *adata, const char *method)
Authenticate using CRAM-MD5 - Implements ImapAuth::authenticate()
enum ImapAuthRes imap_auth_gss(struct ImapAccountData *adata, const char *method)
GSS Authentication support - Implements ImapAuth::authenticate()
Authentication successful.