aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-03 20:44:38 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-03 20:44:38 +0000
commitf796336a12e2d3c487a53854fdf28c096481a34a (patch)
treea276b6aa0d020ffcfd4040ff18c31938c06da17c /tmux.c
parent3b944fe7e847ee5e5741582ed34b702273f0b9ef (diff)
downloadrtmux-f796336a12e2d3c487a53854fdf28c096481a34a.tar.gz
rtmux-f796336a12e2d3c487a53854fdf28c096481a34a.tar.bz2
rtmux-f796336a12e2d3c487a53854fdf28c096481a34a.zip
Sync OpenBSD patchset 308:
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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index f145b4d4..9460ad8e 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.168 2009-09-02 01:02:44 tcunha Exp $ */
+/* $Id: tmux.c,v 1.169 2009-09-03 20:44:38 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -52,7 +52,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;