aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth1.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-10-26 12:06:11 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-10-26 12:06:11 +0000
commit0f67ff89d9918344965897887ca47c9bb7471752 (patch)
treee7c58cbabcc205eb93582c00cebb2fa8dc63cadd /libssh/auth1.c
parent9a2683f183338da7c82261d502cdeff0855c210c (diff)
downloadlibssh-0f67ff89d9918344965897887ca47c9bb7471752.tar.gz
libssh-0f67ff89d9918344965897887ca47c9bb7471752.tar.xz
libssh-0f67ff89d9918344965897887ca47c9bb7471752.zip
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
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r--libssh/auth1.c4
1 files changed, 3 insertions, 1 deletions
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 {