summaryrefslogtreecommitdiffstats
path: root/meta/packages/dropbear
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2010-07-05 10:34:19 +0800
committerJoshua Lock <josh@linux.intel.com>2010-07-07 17:12:12 +0100
commit0f8810e6be2d52fcd78df9ed37ff4e1754054555 (patch)
tree137d68bfc15b85a347c02a68d3c7cae277c98b11 /meta/packages/dropbear
parent47b2545009c736b5ea988c1355ee8782050afd6a (diff)
downloadpoky-0f8810e6be2d52fcd78df9ed37ff4e1754054555.tar.gz
dropbear: upgrade to version 5.02
from 0.49 clarify license changes: - rebase allow-nopw.patch, some fields in the original file are renamed - rebase urandom-xauth-changes-to-options.h.patch, urandom change is already in upstream Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/packages/dropbear')
-rw-r--r--meta/packages/dropbear/dropbear-0.52/configure.patch (renamed from meta/packages/dropbear/dropbear-0.49/configure.patch)0
-rw-r--r--meta/packages/dropbear/dropbear.inc5
-rw-r--r--meta/packages/dropbear/dropbear/allow-nopw.patch29
-rw-r--r--meta/packages/dropbear/dropbear/urandom-xauth-changes-to-options.h.patch9
-rw-r--r--meta/packages/dropbear/dropbear_0.52.bb (renamed from meta/packages/dropbear/dropbear_0.49.bb)2
5 files changed, 21 insertions, 24 deletions
diff --git a/meta/packages/dropbear/dropbear-0.49/configure.patch b/meta/packages/dropbear/dropbear-0.52/configure.patch
index 8d11b23f14..8d11b23f14 100644
--- a/meta/packages/dropbear/dropbear-0.49/configure.patch
+++ b/meta/packages/dropbear/dropbear-0.52/configure.patch
diff --git a/meta/packages/dropbear/dropbear.inc b/meta/packages/dropbear/dropbear.inc
index 7f5dbe356b..1d78d5c59b 100644
--- a/meta/packages/dropbear/dropbear.inc
+++ b/meta/packages/dropbear/dropbear.inc
@@ -1,7 +1,12 @@
1DESCRIPTION = "Dropbear is a lightweight SSH and SCP Implementation" 1DESCRIPTION = "Dropbear is a lightweight SSH and SCP Implementation"
2HOMEPAGE = "http://matt.ucc.asn.au/dropbear/dropbear.html" 2HOMEPAGE = "http://matt.ucc.asn.au/dropbear/dropbear.html"
3SECTION = "console/network" 3SECTION = "console/network"
4
5# some files are from other projects and have others license terms:
6# public domain, OpenSSH 3.5p1, OpenSSH3.6.1p2, PuTTY
4LICENSE = "MIT" 7LICENSE = "MIT"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=3a5b0c2f0d0c49dfde9558ae2036683c"
9
5DEPENDS = "zlib" 10DEPENDS = "zlib"
6PROVIDES = "ssh sshd" 11PROVIDES = "ssh sshd"
7RPROVIDES = "ssh sshd" 12RPROVIDES = "ssh sshd"
diff --git a/meta/packages/dropbear/dropbear/allow-nopw.patch b/meta/packages/dropbear/dropbear/allow-nopw.patch
index 1a709b8da0..2ae361c63e 100644
--- a/meta/packages/dropbear/dropbear/allow-nopw.patch
+++ b/meta/packages/dropbear/dropbear/allow-nopw.patch
@@ -1,33 +1,34 @@
1diff -Nurd dropbear-0.45/svr-auth.c dropbear-0.45.patched/svr-auth.c 1diff --git a/svr-auth.c b/svr-auth.c
2--- dropbear-0.45/svr-auth.c 2005-03-06 20:27:02.000000000 -0800 2index 5da0aa7..4de4964 100644
3+++ dropbear-0.45.patched/svr-auth.c 2005-03-08 15:22:43.998592744 -0800 3--- a/svr-auth.c
4@@ -237,6 +237,7 @@ 4+++ b/svr-auth.c
5@@ -249,6 +249,7 @@ static int checkusername(unsigned char *username, unsigned int userlen) {
5 } 6 }
6 7
7 /* check for an empty password */ 8 /* check for an empty password */
8+#ifdef DISALLOW_EMPTY_PW 9+#ifdef DISALLOW_EMPTY_PW
9 if (ses.authstate.pw->pw_passwd[0] == '\0') { 10 if (ses.authstate.pw_passwd[0] == '\0') {
10 TRACE(("leave checkusername: empty pword")) 11 TRACE(("leave checkusername: empty pword"))
11 dropbear_log(LOG_WARNING, "user '%s' has blank password, rejected", 12 dropbear_log(LOG_WARNING, "user '%s' has blank password, rejected",
12@@ -244,7 +245,7 @@ 13@@ -256,6 +257,7 @@ static int checkusername(unsigned char *username, unsigned int userlen) {
13 send_msg_userauth_failure(0, 1); 14 send_msg_userauth_failure(0, 1);
14 return DROPBEAR_FAILURE; 15 return DROPBEAR_FAILURE;
15 } 16 }
16-
17+#endif 17+#endif
18 TRACE(("shell is %s", ses.authstate.pw->pw_shell))
19 18
20 /* check that the shell is set */ 19 TRACE(("shell is %s", ses.authstate.pw_shell))
21diff -Nurd dropbear-0.45/svr-authpasswd.c dropbear-0.45.patched/svr-authpasswd.c 20
22--- dropbear-0.45/svr-authpasswd.c 2005-03-06 20:27:02.000000000 -0800 21diff --git a/svr-authpasswd.c b/svr-authpasswd.c
23+++ dropbear-0.45.patched/svr-authpasswd.c 2005-03-08 15:22:44.010591023 -0800 22index 53550a2..7b896bd 100644
24@@ -64,9 +64,13 @@ 23--- a/svr-authpasswd.c
24+++ b/svr-authpasswd.c
25@@ -64,9 +64,13 @@ void svr_auth_password() {
25 * since the shadow password may differ to that tested 26 * since the shadow password may differ to that tested
26 * in auth.c */ 27 * in auth.c */
27 if (passwdcrypt[0] == '\0') { 28 if (passwdcrypt[0] == '\0') {
28+#ifdef DISALLOW_EMPTY_PASSWD 29+#ifdef DISALLOW_EMPTY_PASSWD
29 dropbear_log(LOG_WARNING, "user '%s' has blank password, rejected", 30 dropbear_log(LOG_WARNING, "user '%s' has blank password, rejected",
30 ses.authstate.printableuser); 31 ses.authstate.pw_name);
31 send_msg_userauth_failure(0, 1); 32 send_msg_userauth_failure(0, 1);
32+#else 33+#else
33+ send_msg_userauth_success(); 34+ send_msg_userauth_success();
diff --git a/meta/packages/dropbear/dropbear/urandom-xauth-changes-to-options.h.patch b/meta/packages/dropbear/dropbear/urandom-xauth-changes-to-options.h.patch
index e2b1dd5da5..75ba306565 100644
--- a/meta/packages/dropbear/dropbear/urandom-xauth-changes-to-options.h.patch
+++ b/meta/packages/dropbear/dropbear/urandom-xauth-changes-to-options.h.patch
@@ -1,15 +1,6 @@
1diff -Nurd dropbear-0.45/options.h dropbear-0.45.patched/options.h 1diff -Nurd dropbear-0.45/options.h dropbear-0.45.patched/options.h
2--- dropbear-0.45/options.h 2005-03-06 20:27:02.000000000 -0800 2--- dropbear-0.45/options.h 2005-03-06 20:27:02.000000000 -0800
3+++ dropbear-0.45.patched/options.h 2005-03-08 15:25:09.368742090 -0800 3+++ dropbear-0.45.patched/options.h 2005-03-08 15:25:09.368742090 -0800
4@@ -143,7 +143,7 @@
5 * however significantly reduce the security of your ssh connections
6 * if the PRNG state becomes guessable - make sure you know what you are
7 * doing if you change this. */
8-#define DROPBEAR_RANDOM_DEV "/dev/random"
9+#define DROPBEAR_RANDOM_DEV "/dev/urandom"
10
11 /* prngd must be manually set up to produce output */
12 /*#define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng"*/
13@@ -167,7 +167,7 @@ 4@@ -167,7 +167,7 @@
14 /* The command to invoke for xauth when using X11 forwarding. 5 /* The command to invoke for xauth when using X11 forwarding.
15 * "-q" for quiet */ 6 * "-q" for quiet */
diff --git a/meta/packages/dropbear/dropbear_0.49.bb b/meta/packages/dropbear/dropbear_0.52.bb
index 929eeb8174..51217ea39d 100644
--- a/meta/packages/dropbear/dropbear_0.49.bb
+++ b/meta/packages/dropbear/dropbear_0.52.bb
@@ -1,3 +1,3 @@
1require dropbear.inc 1require dropbear.inc
2 2
3PR="r2" 3PR="r0"