Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
8bc152e3
...
8bc152e3583aeb5e625735038ca1335afa4962cd
authored
2003-10-11 10:59:20 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(check_login_delay,update_login_delay): New functions.
1 parent
86cdd484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
pop3d/pop3d.h
pop3d/pop3d.h
View file @
8bc152e
...
...
@@ -62,14 +62,30 @@
/* Command not permitted when TLS active. */
#define TLS_ACTIVE "Command not permitted when TLS active"
/* Trying to log in within the minimum login delay interval */
#define LOGIN_DELAY "Attempt to log in within the minimum login delay interval"
/* APOP password file, without .db or .passwd, which are added based on file
type automatically */
#define APOP_PASSFILE_NAME "apop"
#ifdef USE_DBM
# define APOP_PASSFILE SYSCONFDIR "/" APOP_PASSFILE_NAME
# define ENABLE_LOGIN_DELAY
#else
# define APOP_PASSFILE SYSCONFDIR "/" APOP_PASSFILE_NAME ".passwd"
# undef ENABLE_LOGIN_DELAY
#endif
#ifdef ENABLE_LOGIN_DELAY
# define LOGIN_STAT_FILE "/var/run/pop3-login"
extern
time_t
login_delay
;
extern
char
*
login_stat_file
;
extern
int
check_login_delay
__P
((
char
*
username
));
extern
void
update_login_delay
__P
((
char
*
username
));
#else
# define check_login_delay(u) 0
# define update_login_delay(u)
#endif
/* Size of the MD5 digest for APOP */
...
...
@@ -173,6 +189,7 @@
#define ERR_MBOX_SYNC 16
#define ERR_TLS_ACTIVE 17
#define ERR_TLS_IO 18
#define ERR_LOGIN_DELAY 19
extern
mailbox_t
mbox
;
extern
int
state
;
...
...
Please
register
or
sign in
to post a comment