NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
auth.h
Go to the documentation of this file.
1
23
24
/* common defs for authenticators. A good place to set up a generic callback
25
* system */
26
27
#ifndef MUTT_IMAP_AUTH_H
28
#define MUTT_IMAP_AUTH_H
29
30
#include "config.h"
31
#include <stdbool.h>
32
33
struct
ImapAccountData
;
34
38
enum
ImapAuthRes
39
{
40
IMAP_AUTH_SUCCESS
= 0,
41
IMAP_AUTH_FAILURE
,
42
IMAP_AUTH_UNAVAIL
,
43
};
44
45
bool
imap_auth_is_valid
(
const
char
*authenticator);
46
47
/* external authenticator prototypes */
48
enum
ImapAuthRes
imap_auth_plain
(
struct
ImapAccountData
*
adata
,
const
char
*method);
49
#ifndef USE_SASL_CYRUS
50
enum
ImapAuthRes
imap_auth_anon
(
struct
ImapAccountData
*
adata
,
const
char
*method);
51
enum
ImapAuthRes
imap_auth_cram_md5
(
struct
ImapAccountData
*
adata
,
const
char
*method);
52
#endif
53
enum
ImapAuthRes
imap_auth_login
(
struct
ImapAccountData
*
adata
,
const
char
*method);
54
#ifdef USE_GSS
55
enum
ImapAuthRes
imap_auth_gss
(
struct
ImapAccountData
*
adata
,
const
char
*method);
56
#endif
57
#ifdef USE_SASL_CYRUS
58
enum
ImapAuthRes
imap_auth_sasl
(
struct
ImapAccountData
*
adata
,
const
char
*method);
59
#endif
60
#ifdef USE_SASL_GNU
61
enum
ImapAuthRes
imap_auth_gsasl
(
struct
ImapAccountData
*
adata
,
const
char
*method);
62
#endif
63
enum
ImapAuthRes
imap_auth_oauth
(
struct
ImapAccountData
*
adata
,
const
char
*method);
64
enum
ImapAuthRes
imap_auth_xoauth2
(
struct
ImapAccountData
*
adata
,
const
char
*method);
65
66
#endif
/* MUTT_IMAP_AUTH_H */
ImapAuthRes
ImapAuthRes
Results of IMAP Authentication.
Definition
auth.h:39
IMAP_AUTH_FAILURE
@ IMAP_AUTH_FAILURE
Authentication failed.
Definition
auth.h:41
IMAP_AUTH_SUCCESS
@ IMAP_AUTH_SUCCESS
Authentication successful.
Definition
auth.h:40
IMAP_AUTH_UNAVAIL
@ IMAP_AUTH_UNAVAIL
Authentication method not permitted.
Definition
auth.h:42
imap_auth_is_valid
bool imap_auth_is_valid(const char *authenticator)
Check if string is a valid imap authentication method.
Definition
auth.c:96
imap_auth_gss
enum ImapAuthRes imap_auth_gss(struct ImapAccountData *adata, const char *method)
GSS Authentication support - Implements ImapAuth::authenticate() -.
Definition
auth_gss.c:106
imap_auth_login
enum ImapAuthRes imap_auth_login(struct ImapAccountData *adata, const char *method)
Plain LOGIN support - Implements ImapAuth::authenticate() -.
Definition
auth_login.c:45
imap_auth_gsasl
enum ImapAuthRes imap_auth_gsasl(struct ImapAccountData *adata, const char *method)
GNU SASL authenticator - Implements ImapAuth::authenticate() -.
Definition
auth_gsasl.c:41
imap_auth_cram_md5
enum ImapAuthRes imap_auth_cram_md5(struct ImapAccountData *adata, const char *method)
Authenticate using CRAM-MD5 - Implements ImapAuth::authenticate() -.
Definition
auth_cram.c:96
imap_auth_xoauth2
enum ImapAuthRes imap_auth_xoauth2(struct ImapAccountData *adata, const char *method)
Authenticate an IMAP connection using XOAUTH2 - Implements ImapAuth::authenticate() -.
Definition
auth_oauth.c:119
imap_auth_plain
enum ImapAuthRes imap_auth_plain(struct ImapAccountData *adata, const char *method)
SASL PLAIN support - Implements ImapAuth::authenticate() -.
Definition
auth_plain.c:42
imap_auth_anon
enum ImapAuthRes imap_auth_anon(struct ImapAccountData *adata, const char *method)
Authenticate anonymously - Implements ImapAuth::authenticate() -.
Definition
auth_anon.c:42
imap_auth_oauth
enum ImapAuthRes imap_auth_oauth(struct ImapAccountData *adata, const char *method)
Authenticate an IMAP connection using OAUTHBEARER - Implements ImapAuth::authenticate() -.
Definition
auth_oauth.c:111
imap_auth_sasl
enum ImapAuthRes imap_auth_sasl(struct ImapAccountData *adata, const char *method)
SASL authenticator - Implements ImapAuth::authenticate() -.
Definition
auth_sasl.c:46
Account::adata
void * adata
Private data (for Mailbox backends).
Definition
account.h:42
ImapAccountData
IMAP-specific Account data -.
Definition
adata.h:40