POP authentication. More...
#include "config.h"#include <stdbool.h>#include <stdio.h>#include <string.h>#include "private.h"#include "mutt/lib.h"#include "address/lib.h"#include "config/lib.h"#include "core/lib.h"#include "conn/lib.h"#include "adata.h"
Include dependency graph for auth.c:Go to the source code of this file.
Functions | |
| void | pop_apop_timestamp (struct PopAccountData *adata, char *buf) |
| Get the server timestamp for APOP authentication. | |
| static enum PopAuthRes | pop_auth_apop (struct PopAccountData *adata, const char *method) |
| APOP authenticator - Implements PopAuth::authenticate() -. | |
| static enum PopAuthRes | pop_auth_user (struct PopAccountData *adata, const char *method) |
| USER authenticator - Implements PopAuth::authenticate() -. | |
| static enum PopAuthRes | pop_auth_oauth (struct PopAccountData *adata, const char *method) |
| Authenticate a POP connection using OAUTHBEARER - Implements PopAuth::authenticate() -. | |
| bool | pop_auth_is_valid (const char *authenticator) |
| Check if string is a valid pop authentication method. | |
| int | pop_authenticate (struct PopAccountData *adata) |
| Authenticate with a POP server. | |
Variables | |
| static const struct PopAuth | PopAuthenticators [] |
| Accepted authentication methods. | |
POP authentication.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file auth.c.
| void pop_apop_timestamp | ( | struct PopAccountData * | adata, |
| char * | buf ) |
Get the server timestamp for APOP authentication.
| adata | POP Account data |
| buf | Timestamp string |
Definition at line 301 of file auth.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool pop_auth_is_valid | ( | const char * | authenticator | ) |
Check if string is a valid pop authentication method.
| authenticator | Authenticator string to check |
| true | Argument is a valid auth method |
Validate whether an input string is an accepted pop authentication method as defined by PopAuthenticators.
Definition at line 502 of file auth.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int pop_authenticate | ( | struct PopAccountData * | adata | ) |
Authenticate with a POP server.
| adata | POP Account data |
| num | Result, e.g. POP_A_SUCCESS |
| 0 | Successful |
| -1 | Connection lost |
| -2 | Login failed |
| -3 | Authentication cancelled |
Definition at line 523 of file auth.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Accepted authentication methods.
Definition at line 479 of file auth.c.