Mercurial > hg > control-images
annotate images/static-tools/patches/dropbear-fixnopasswd.patch @ 11:a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 29 Oct 2011 12:41:37 -0500 |
parents | |
children |
rev | line source |
---|---|
11
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 No password is no reason to prevent key-based logins. |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 diff -ru dropbear.new/svr-auth.c dropbear/svr-auth.c |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 --- dropbear.new/svr-auth.c 2011-10-11 09:50:22.047129393 -0500 |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 +++ dropbear/svr-auth.c 2011-03-02 07:23:36.000000000 -0600 |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 @@ -249,7 +249,7 @@ |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 return DROPBEAR_FAILURE; |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 } |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 - /* check for an empty password */ |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 + /* check for an empty password |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 if (ses.authstate.pw_passwd[0] == '\0') { |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 TRACE(("leave checkusername: empty pword")) |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 dropbear_log(LOG_WARNING, "User '%s' has blank password, rejected", |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 @@ -257,6 +257,7 @@ |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 send_msg_userauth_failure(0, 1); |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 return DROPBEAR_FAILURE; |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 } |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 +*/ |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 TRACE(("shell is %s", ses.authstate.pw_shell)) |
a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 |