summaryrefslogtreecommitdiff
path: root/libexec/popa3d/pop_auth.h
blob: 4013eb2ea888b70afdb01fed4fe5113031f7d421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* $OpenBSD: pop_auth.h,v 1.2 2001/08/13 20:19:33 camield Exp $ */

/*
 * AUTHORIZATION state handling.
 */

#ifndef _POP_AUTH_H
#define _POP_AUTH_H

/*
 * Possible authentication results.
 */
#define AUTH_OK				0
#define AUTH_NONE			1
#define AUTH_FAILED			2

/*
 * Handles the AUTHORIZATION state commands, and writes authentication
 * data into the channel.
 */
extern int do_pop_auth(int channel);

/*
 * Logs an authentication attempt for mailbox (or NULL if the requested
 * mailbox doesn't exist).
 */
extern void log_pop_auth(int result, char *mailbox);

#endif