summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshconnect.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>1999-10-14 20:03:45 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>1999-10-14 20:03:45 +0000
commit0c221dcbade3640022576c1436e499523d5a4b8f (patch)
tree51b9d40e863d0d89983647e6ff208ea12919e9a5 /usr.bin/ssh/sshconnect.c
parentfdfcb5f31e00011ba192730460be66382c0f2e84 (diff)
say "Permission denied" if passwd is wrong. from wvdputte, ok niels
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r--usr.bin/ssh/sshconnect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index 29b16b31d63..0783f4c6b05 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -15,7 +15,7 @@ login (authentication) dialog.
*/
#include "includes.h"
-RCSID("$Id: sshconnect.c,v 1.17 1999/10/14 18:17:42 markus Exp $");
+RCSID("$Id: sshconnect.c,v 1.18 1999/10/14 20:03:44 markus Exp $");
#include <ssl/bn.h>
#include "xmalloc.h"
@@ -1458,6 +1458,8 @@ void ssh_login(int host_key_valid,
if (options->cipher == SSH_CIPHER_NONE)
log("WARNING: Encryption is disabled! Password will be transmitted in clear text.");
for (i = 0; i < options->number_of_password_prompts; i++) {
+ if (i != 0)
+ error("Permission denied, please try again.");
password = read_passphrase(prompt, 0);
packet_start(SSH_CMSG_AUTH_PASSWORD);
packet_put_string(password, strlen(password));