]> andersk Git - openssh.git/blobdiff - sshconnect1.c
- (djm) OpenBSD CVS:
[openssh.git] / sshconnect1.c
index c82375a3dfb990bafcdf93c3ac342bebe8b2e6aa..c5ff7213a01e7dfeda64f41c6061808f7d7ca5c5 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshconnect1.c,v 1.26 2001/02/12 12:45:06 markus Exp $");
+RCSID("$OpenBSD: sshconnect1.c,v 1.27 2001/02/15 23:19:59 markus Exp $");
 
 #include <openssl/bn.h>
 #include <openssl/evp.h>
@@ -51,20 +51,6 @@ u_int supported_authentications = 0;
 extern Options options;
 extern char *__progname;
 
-void
-ssh1_put_password(char *password)
-{
-       int size;
-       char *padded;
-
-       size = roundup(strlen(password) + 1, 32);
-       padded = xmalloc(size);
-       strlcpy(padded, password, size);
-       packet_put_string(padded, size);
-       memset(padded, 0, size);
-       xfree(padded);
-}
-
 /*
  * Checks if the user has an authentication agent, and if so, tries to
  * authenticate using the agent.
@@ -672,7 +658,7 @@ try_challenge_reponse_authentication(void)
                        break;
                }
                packet_start(SSH_CMSG_AUTH_TIS_RESPONSE);
-               ssh1_put_password(response);
+               ssh_put_password(response);
                memset(response, 0, strlen(response));
                xfree(response);
                packet_send();
@@ -705,7 +691,7 @@ try_password_authentication(char *prompt)
                        error("Permission denied, please try again.");
                password = read_passphrase(prompt, 0);
                packet_start(SSH_CMSG_AUTH_PASSWORD);
-               ssh1_put_password(password);
+               ssh_put_password(password);
                memset(password, 0, strlen(password));
                xfree(password);
                packet_send();
This page took 0.033404 seconds and 4 git commands to generate.