]> andersk Git - openssh.git/blobdiff - sshconnect2.c
- Remove references to SSLeay.
[openssh.git] / sshconnect2.c
index a4342e2df08727d31e7ef59bb01745e1f18effd3..17325b097ff5d5b1638ec0f1ec0581f0d16e2cab 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshconnect2.c,v 1.5 2000/05/01 18:41:06 markus Exp $");
+RCSID("$OpenBSD: sshconnect2.c,v 1.7 2000/05/06 17:45:37 markus Exp $");
 
 #include <openssl/bn.h>
 #include <openssl/rsa.h>
@@ -283,9 +283,13 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
 int
 ssh2_try_passwd(const char *server_user, const char *host, const char *service)
 {
+       static int attempt = 0;
        char prompt[80];
        char *password;
 
+       if (attempt++ > options.number_of_password_prompts)
+               return 0;
+
        snprintf(prompt, sizeof(prompt), "%.30s@%.40s's password: ",
            server_user, host);
        password = read_passphrase(prompt, 0);
@@ -428,7 +432,7 @@ ssh_userauth2(const char *server_user, char *host)
                packet_done();
                if (partial)
                        debug("partial success");
-               if (options.rsa_authentication &&
+               if (options.dsa_authentication &&
                    strstr(auths, "publickey") != NULL) {
                        while (i < options.num_identity_files2) {
                                sent = ssh2_try_pubkey(
This page took 0.057376 seconds and 4 git commands to generate.