summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-02 16:38:35 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-02 16:38:35 +0000
commitc5ac2579bac08f46f68ee7b9b9e47b6123e83bd2 (patch)
tree5737b5805ca0cf415d3457c80860e6874e7f6b72 /tmux.c
parent61b7dc522d175c5f2a8b38d177adcf7282820380 (diff)
When incorrect passwords are entered, behave similarly to login(1) and backoff
for a bit. Based on a diff from martynas@.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmux.c b/tmux.c
index f77b1d6c..01f7d6c3 100644
--- a/tmux.c
+++ b/tmux.c
@@ -47,7 +47,9 @@ struct options global_w_options; /* window options */
struct environ global_environ;
int server_locked;
+struct passwd *server_locked_pw;
u_int password_failures;
+time_t password_backoff;
char *server_password;
time_t server_activity;