[uClibc] Buildroot & Dropbear ssh

Vincent Sanders vince at kyllikki.org
Fri Sep 12 01:25:05 UTC 2003


On Thu, Sep 11, 2003 at 06:26:00PM -0600, Erik Andersen wrote:
> On Fri Sep 12, 2003 at 12:03:39PM +1200, Alex King wrote:
> > Dropbear have bumpeed their version to 0.36, and 0.35 is not where
> > buildroot expects it (they seem to have removed that version.)
> > 
> > Also, it seems to want zlib, so the ssh targets in the main makefile
> > could be altered by including zlib with dropbear, or putting zlib
> > somewhere else?
> 
> Thanks.  Both should be fixed now.  Lemme know if you have
> any problems,
> 

Hopefuly there will be a new dropbear release soon with some issues
fixed. I discovered these while using uClibc on an embeded build when
the users home directory is missing (I have attached the patches from
the dropbear author just in case)

-- 
Regards Vincent
http://www.kyllikki.org/
-------------- next part --------------
diff -urbBN dropbear-0.33/config.cache dropbear-0.33-patched/config.cache
--- dropbear-0.33/config.cache	1970-01-01 01:00:00.000000000 +0100
+++ dropbear-0.33-patched/config.cache	2003-08-12 16:09:59.000000000 +0100
@@ -0,0 +1 @@
+ac_cv_func_setpgrp_void=${ac_cv_func_setpgrp_void=yes}
diff -urN dropbear-0.36/authpubkey.c dropbear-0.36-patched/authpubkey.c
--- dropbear-0.36/authpubkey.c	2003-07-24 11:34:54.000000000 +0100
+++ dropbear-0.36-patched/authpubkey.c	2003-09-01 17:37:49.000000000 +0100
@@ -131,7 +131,7 @@
 	}
 	if (key) {
 		sign_key_free(key);
-
+		key = NULL;
 	}
 	TRACE(("leave pubkeyauth"));
 }
diff -urN dropbear-0.36/chansession.c dropbear-0.36-patched/chansession.c
--- dropbear-0.36/chansession.c	2003-06-30 11:03:49.000000000 +0100
+++ dropbear-0.36-patched/chansession.c	2003-09-01 17:37:49.000000000 +0100
@@ -725,6 +725,7 @@
 
 	/* wipe the hostkey */
 	sign_key_free(ses.opts->hostkey);
+	ses.opts->hostkey = NULL;
 
 	/* overwrite the prng state */
 	seedrandom();
diff -urN dropbear-0.36/runopts.c dropbear-0.36-patched/runopts.c
--- dropbear-0.36/runopts.c	2003-08-07 11:52:41.000000000 +0100
+++ dropbear-0.36-patched/runopts.c	2003-09-01 17:37:49.000000000 +0100
@@ -212,6 +212,7 @@
 
 	if (opts->hostkey) {
 		sign_key_free(opts->hostkey);
+		opts->hostkey = NULL;
 	}
 
 	m_free(opts->ports);
diff -urN dropbear-0.36/signkey.c dropbear-0.36-patched/signkey.c
--- dropbear-0.36/signkey.c	2003-06-22 11:42:53.000000000 +0100
+++ dropbear-0.36-patched/signkey.c	2003-09-01 17:37:49.000000000 +0100
@@ -186,9 +186,11 @@
 
 #ifdef DROPBEAR_DSS
 	dss_key_free(key->dsskey);
+	key->dsskey = NULL;
 #endif
 #ifdef DROPBEAR_RSA
 	rsa_key_free(key->rsakey);
+	key->rsakey = NULL;
 #endif
 
 	m_free(key);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20030912/a8feb8d4/attachment-0002.pgp 


More information about the uClibc mailing list