summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-16 12:34:57 +1100
committerDamien Miller <djm@mindrot.org>2001-02-16 12:34:57 +1100
commit79438cc03040e22a053f2cb02e42483272b458df (patch)
treecbc85e2742e20db8ed40835b087523f78eb4e9a8 /sshconnect2.c
parent217f567187a9b1d32019666151d702c87332c72b (diff)
- (djm) OpenBSD CVS:
- markus@cvs.openbsd.org 2001/02/15 16:19:59 [channels.c channels.h serverloop.c sshconnect.c sshconnect.h] [sshconnect1.c sshconnect2.c] genericize password padding function for SSH1 and SSH2. add stylized echo to 2, too. - (djm) Add roundup() macro to defines.h
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 9681ca2d4..12335e80e 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sshconnect2.c,v 1.47 2001/02/11 12:59:25 markus Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.48 2001/02/15 23:19:59 markus Exp $");
27 27
28#include <openssl/bn.h> 28#include <openssl/bn.h>
29#include <openssl/md5.h> 29#include <openssl/md5.h>
@@ -658,7 +658,7 @@ userauth_passwd(Authctxt *authctxt)
658 packet_put_cstring(authctxt->service); 658 packet_put_cstring(authctxt->service);
659 packet_put_cstring(authctxt->method->name); 659 packet_put_cstring(authctxt->method->name);
660 packet_put_char(0); 660 packet_put_char(0);
661 packet_put_cstring(password); 661 ssh_put_password(password);
662 memset(password, 0, strlen(password)); 662 memset(password, 0, strlen(password));
663 xfree(password); 663 xfree(password);
664 packet_send(); 664 packet_send();
@@ -928,7 +928,7 @@ input_userauth_info_req(int type, int plen, void *ctxt)
928 928
929 response = cli_prompt(prompt, echo); 929 response = cli_prompt(prompt, echo);
930 930
931 packet_put_cstring(response); 931 ssh_put_password(response);
932 memset(response, 0, strlen(response)); 932 memset(response, 0, strlen(response));
933 xfree(response); 933 xfree(response);
934 xfree(prompt); 934 xfree(prompt);