When incorrect passwords are entered, behave similarly to login(1) and backoff

for a bit. Based on a diff from martynas@.
This commit is contained in:
Nicholas Marriott
2009-09-02 16:38:35 +00:00
parent 61b7dc522d
commit c5ac2579ba
5 changed files with 55 additions and 4 deletions

2
tmux.h
View File

@ -1108,7 +1108,9 @@ extern struct options global_w_options;
extern struct environ global_environ;
extern char *cfg_file;
extern int server_locked;
extern struct passwd *server_locked_pw;
extern u_int password_failures;
extern time_t password_backoff;
extern char *server_password;
extern time_t server_activity;
extern int debug_level;