diff options
author | Damien Miller <djm@mindrot.org> | 2014-07-03 21:29:38 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-07-03 21:29:38 +1000 |
commit | 686feb560ec43a06ba04da82b50f3c183c947309 (patch) | |
tree | 2eb2828a5c6c16d2fdede3f4644c811d98e06b57 /auth.h | |
parent | 0f12341402e18fd9996ec23189b9418d2722453f (diff) |
- djm@cvs.openbsd.org 2014/07/03 11:16:55
[auth.c auth.h auth1.c auth2.c]
make the "Too many authentication failures" message include the
user, source address, port and protocol in a format similar to the
authentication success / failure messages; bz#2199, ok dtucker
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.h,v 1.77 2014/01/29 06:18:35 djm Exp $ */ | 1 | /* $OpenBSD: auth.h,v 1.78 2014/07/03 11:16:55 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -154,6 +154,7 @@ void auth_info(Authctxt *authctxt, const char *, ...) | |||
154 | __attribute__((__format__ (printf, 2, 3))) | 154 | __attribute__((__format__ (printf, 2, 3))) |
155 | __attribute__((__nonnull__ (2))); | 155 | __attribute__((__nonnull__ (2))); |
156 | void auth_log(Authctxt *, int, int, const char *, const char *); | 156 | void auth_log(Authctxt *, int, int, const char *, const char *); |
157 | void auth_maxtries_exceeded(Authctxt *) __attribute__((noreturn)); | ||
157 | void userauth_finish(Authctxt *, int, const char *, const char *); | 158 | void userauth_finish(Authctxt *, int, const char *, const char *); |
158 | int auth_root_allowed(const char *); | 159 | int auth_root_allowed(const char *); |
159 | 160 | ||
@@ -210,8 +211,6 @@ struct passwd *fakepw(void); | |||
210 | 211 | ||
211 | int sys_auth_passwd(Authctxt *, const char *); | 212 | int sys_auth_passwd(Authctxt *, const char *); |
212 | 213 | ||
213 | #define AUTH_FAIL_MSG "Too many authentication failures for %.100s" | ||
214 | |||
215 | #define SKEY_PROMPT "\nS/Key Password: " | 214 | #define SKEY_PROMPT "\nS/Key Password: " |
216 | 215 | ||
217 | #if defined(KRB5) && !defined(HEIMDAL) | 216 | #if defined(KRB5) && !defined(HEIMDAL) |