summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-10 17:22:20 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-10 17:22:20 +0000
commitd20d0f3e27884c7daf9d48d335168898e147b65b (patch)
tree01bad8837c1f9fb0cde391f48a0833feaa6c706e /sshconnect.c
parent00261540be24b71fcd5c2b62d4ee2a7edabe081c (diff)
- deraadt@cvs.openbsd.org 2001/03/10 15:31:00
[compat.c compat.h sshconnect.c] all known netscreen ssh versions, and older versions of OSU ssh cannot handle password padding (newer OSU is fixed)
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 9962d49bd..573ae76b1 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.98 2001/03/04 17:42:28 millert Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.99 2001/03/10 15:31:00 deraadt Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -777,6 +777,10 @@ ssh_put_password(char *password)
777 int size; 777 int size;
778 char *padded; 778 char *padded;
779 779
780 if (datafellows & SSH_BUG_PASSWORDPAD) {
781 packet_put_string(password, strlen(password));
782 return;
783 }
780 size = roundup(strlen(password) + 1, 32); 784 size = roundup(strlen(password) + 1, 32);
781 padded = xmalloc(size); 785 padded = xmalloc(size);
782 memset(padded, 0, size); 786 memset(padded, 0, size);