diff options
author | 2001-03-10 15:31:00 +0000 | |
---|---|---|
committer | 2001-03-10 15:31:00 +0000 | |
commit | 38d17e117c6cf257d299611949e81964d5f047fd (patch) | |
tree | 6e7b526c5690cec1b6182e178c90d7b31b29857d /usr.bin/ssh/sshconnect.c | |
parent | remove unused sgtty macros; ok markus@ (diff) | |
download | wireguard-openbsd-38d17e117c6cf257d299611949e81964d5f047fd.tar.xz wireguard-openbsd-38d17e117c6cf257d299611949e81964d5f047fd.zip |
all known netscreen ssh versions, and older versions of OSU ssh cannot
handle password padding (newer OSU is fixed)
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index 2534743a534..62a3aee17e3 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect.c,v 1.98 2001/03/04 17:42:28 millert Exp $"); +RCSID("$OpenBSD: sshconnect.c,v 1.99 2001/03/10 15:31:00 deraadt Exp $"); #include <openssl/bn.h> @@ -769,6 +769,10 @@ ssh_put_password(char *password) int size; char *padded; + if (datafellows & SSH_BUG_PASSWORDPAD) { + packet_put_string(password, strlen(password)); + return; + } size = roundup(strlen(password) + 1, 32); padded = xmalloc(size); memset(padded, 0, size); |