diff options
Diffstat (limited to 'usr.sbin/popa3d/pop_auth.h')
-rw-r--r-- | usr.sbin/popa3d/pop_auth.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/usr.sbin/popa3d/pop_auth.h b/usr.sbin/popa3d/pop_auth.h new file mode 100644 index 00000000000..4352552f133 --- /dev/null +++ b/usr.sbin/popa3d/pop_auth.h @@ -0,0 +1,29 @@ +/* $OpenBSD: pop_auth.h,v 1.1 2001/08/19 13:05:57 deraadt 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 |