From 0f67ff89d9918344965897887ca47c9bb7471752 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 26 Oct 2005 12:06:11 +0000 Subject: patches from Norbert merged in. I have made some little changes here and there. It still doesn't compile because of the O1 thing passed to ld. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@41 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/auth1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libssh/auth1.c') diff --git a/libssh/auth1.c b/libssh/auth1.c index 40cccda1..415c42aa 100644 --- a/libssh/auth1.c +++ b/libssh/auth1.c @@ -176,7 +176,9 @@ int ssh_userauth1_password(SSH_SESSION *session,char *username,char *password){ * easy to guess password sizes. * not that sure ... */ - if(strlen(password)>=128){ + /* XXX fix me here ! */ + /* cisco IOS doesn't like when a password is followed by zeroes and random pad. */ + if(strlen(password)>=0){ /* not risky to disclose the size of such a big password .. */ password_s=string_from_char(password); } else { -- cgit v1.2.3