diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-07 12:03:14 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-07 12:03:14 +1000 |
commit | e247cc402bc391650f014316363dbce78ad85dc7 (patch) | |
tree | 65d72c3d3514c6119f47017f14b71ed153485a5d /sshconnect2.c | |
parent | 0437b33e54fd72060d17908d6abf96bfabaacad2 (diff) |
- Remove references to SSLeay.
- Big OpenBSD CVS update
- markus@cvs.openbsd.org
[clientloop.c]
- typo
[session.c]
- update proctitle on pty alloc/dealloc, e.g. w/ windows client
[session.c]
- update proctitle for proto 1, too
[channels.h nchan.c serverloop.c session.c sshd.c]
- use c-style comments
- deraadt@cvs.openbsd.org
[scp.c]
- more atomicio
- markus@cvs.openbsd.org
[channels.c]
- set O_NONBLOCK
[ssh.1]
- update AUTHOR
[readconf.c ssh-keygen.c ssh.h]
- default DSA key file ~/.ssh/id_dsa
[clientloop.c]
- typo, rm verbose debug
- deraadt@cvs.openbsd.org
[ssh-keygen.1]
- document DSA use of ssh-keygen
[sshd.8]
- a start at describing what i understand of the DSA side
[ssh-keygen.1]
- document -X and -x
[ssh-keygen.c]
- simplify usage
- markus@cvs.openbsd.org
[sshd.8]
- there is no rhosts_dsa
[ssh-keygen.1]
- document -y, update -X,-x
[nchan.c]
- fix close for non-open ssh1 channels
[servconf.c servconf.h ssh.h sshd.8 sshd.c ]
- s/DsaKey/HostDSAKey/, document option
[sshconnect2.c]
- respect number_of_password_prompts
[channels.c channels.h servconf.c servconf.h session.c sshd.8]
- GatewayPorts for sshd, ok deraadt@
[ssh-add.1 ssh-agent.1 ssh.1]
- more doc on: DSA, id_dsa, known_hosts2, authorized_keys2
[ssh.1]
- more info on proto 2
[sshd.8]
- sync AUTHOR w/ ssh.1
[key.c key.h sshconnect.c]
- print key type when talking about host keys
[packet.c]
- clear padding in ssh2
[dsa.c key.c radix.c ssh.h sshconnect1.c uuencode.c uuencode.h]
- replace broken uuencode w/ libc b64_ntop
[auth2.c]
- log failure before sending the reply
[key.c radix.c uuencode.c]
- remote trailing comments before calling __b64_pton
[auth2.c readconf.c readconf.h servconf.c servconf.h ssh.1]
[sshconnect2.c sshd.8]
- add DSAAuthetication option to ssh/sshd, document SSH2 in sshd.8
- Bring in b64_ntop and b64_pton from OpenBSD libc (bsd-base64.[ch])
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index a4342e2df..17325b097 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -28,7 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #include "includes.h" | 30 | #include "includes.h" |
31 | RCSID("$OpenBSD: sshconnect2.c,v 1.5 2000/05/01 18:41:06 markus Exp $"); | 31 | RCSID("$OpenBSD: sshconnect2.c,v 1.7 2000/05/06 17:45:37 markus Exp $"); |
32 | 32 | ||
33 | #include <openssl/bn.h> | 33 | #include <openssl/bn.h> |
34 | #include <openssl/rsa.h> | 34 | #include <openssl/rsa.h> |
@@ -283,9 +283,13 @@ ssh_kex2(char *host, struct sockaddr *hostaddr) | |||
283 | int | 283 | int |
284 | ssh2_try_passwd(const char *server_user, const char *host, const char *service) | 284 | ssh2_try_passwd(const char *server_user, const char *host, const char *service) |
285 | { | 285 | { |
286 | static int attempt = 0; | ||
286 | char prompt[80]; | 287 | char prompt[80]; |
287 | char *password; | 288 | char *password; |
288 | 289 | ||
290 | if (attempt++ > options.number_of_password_prompts) | ||
291 | return 0; | ||
292 | |||
289 | snprintf(prompt, sizeof(prompt), "%.30s@%.40s's password: ", | 293 | snprintf(prompt, sizeof(prompt), "%.30s@%.40s's password: ", |
290 | server_user, host); | 294 | server_user, host); |
291 | password = read_passphrase(prompt, 0); | 295 | password = read_passphrase(prompt, 0); |
@@ -428,7 +432,7 @@ ssh_userauth2(const char *server_user, char *host) | |||
428 | packet_done(); | 432 | packet_done(); |
429 | if (partial) | 433 | if (partial) |
430 | debug("partial success"); | 434 | debug("partial success"); |
431 | if (options.rsa_authentication && | 435 | if (options.dsa_authentication && |
432 | strstr(auths, "publickey") != NULL) { | 436 | strstr(auths, "publickey") != NULL) { |
433 | while (i < options.num_identity_files2) { | 437 | while (i < options.num_identity_files2) { |
434 | sent = ssh2_try_pubkey( | 438 | sent = ssh2_try_pubkey( |