summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.hgsigs1
-rw-r--r--.hgtags1
-rw-r--r--CHANGES15
-rw-r--r--common-algo.c6
-rw-r--r--debian/changelog6
-rw-r--r--runopts.h3
-rw-r--r--svr-runopts.c42
-rw-r--r--sysoptions.h2
8 files changed, 52 insertions, 24 deletions
diff --git a/.hgsigs b/.hgsigs
index c3ac393..6194e6e 100644
--- a/.hgsigs
+++ b/.hgsigs
@@ -18,3 +18,4 @@ a687f835236c7025b5cb2968fe9c4ebc4a49f0ea 0 iQIcBAABCgAGBQJVxg62AAoJEPSYMBLCC7qsC
ef4b26364b0cdda1084751d7de3d76c589e2d9cb 0 iQIcBAABCgAGBQJVxg7BAAoJEESTFJTynGdz9Q4P/A0Kq4H52rQqxq42PoEMFbVQIUfkFzyWjAz8eEGLmP5x5/sdpyxZDEyBSUG55uyNvOPTHE+Sd3t2h2Iieq749qwYgqggXC0P+C0zGzW3hB5Rv6dTUrKN1yCyaWE2tY488RsyVlcAs4vrp1Cum5Gv8/BUVKjzZmkZ1iq/3RyrvbLEiLoMrcLnQ+sUdaYHvfEwxDbzpOEvepg8iDJBitTrfG9xHp9otX6ucahwn1EumFvC5mvUxbiQ9jv76t4FJztjMoB24hPCH9T1FjB8uNsoM+j2Z67r81eJrGgNpJzjX0S3lY/AADZGhfGnfybTM9gFuQayIJuCJqduQibVwYkAAnPi17NmbdwPu0Rdz55oU+ft09XLVm/qkQcD1EP5bxYWnLIEMkkZQnFx7WdMpjKK9oGxZHeFYAKEgPgePCkk4TQ4PxNa+3854H19AUssQlaueGcbDLyPIRiSyqhleXawGfaJi+1jBt0DM7CNbAHAUWUE07VhQzNGWjabdEk4eXKTmDL+mZJFdHGBhyCve8sPmZBYJvM2PRgcXe8fwFh+R7gVj6kFbZJvgM9kG7EeF+4ZMEXG4yKpV/SKfMMeEPBCZjFxZhlJJ0fsZbB1Y/iLw8LXnJ0fa/5xFYv6k+iytfom/rqS4iUD7NWTjc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cKo9Vs6xDWm35A3Z6x/mrAENaXasB0JrfY5nIbefJUpbeSmi76fYldU98HdQNHPHCSeiKVYl7v/B6gi2JXp5xngLZz/5VVAurago7sRmpIp7G/AqU6LNE85IUzG8aQz8AfR0d1dW
diff --git a/.hgtags b/.hgtags
index 032317e..c16ccff 100644
--- a/.hgtags
+++ b/.hgtags
@@ -50,3 +50,4 @@ cbd674d63cd4f3781464a8d4056a5506c8ae926f DROPBEAR_2015.67
809feaa9408f036734129c77f2b3c7e779d4f099 DROPBEAR_2015.68
1637dbd262124d113e52967df46afd6c715e4fad DROPBEAR_2015.69
79a6ef02307d05cb9dda10465cb5b807baa8f62e DROPBEAR_2015.70
+9a944a243f08be6b22d32f166a0690eb4872462b DROPBEAR_2015.71
diff --git a/CHANGES b/CHANGES
index df69dca..64e8312 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,18 @@
+2015.71 - 3 December 2015
+
+- Fix "bad buf_incrpos" when data is transferred, broke in 2015.69
+
+- Fix crash on exit when -p address:port is used, broke in 2015.68, thanks to
+ Frank Stollenwerk for reporting and investigation
+
+- Fix building with only ENABLE_CLI_REMOTETCPFWD given, patch from Konstantin Tokarev
+
+- Fix bad configure script test which didn't work with dash shell, patch from Juergen Daubert,
+ broke in 2015.70
+
+- Fix server race condition that could cause sessions to hang on exit,
+ https://github.com/robotframework/SSHLibrary/issues/128
+
2015.70 - 26 November 2015
- Fix server password authentication on Linux, broke in 2015.69
diff --git a/common-algo.c b/common-algo.c
index 002ae66..51907d0 100644
--- a/common-algo.c
+++ b/common-algo.c
@@ -249,7 +249,8 @@ algo_type sshhostkey[] = {
};
static const struct dropbear_kex kex_dh_group1 = {DROPBEAR_KEX_NORMAL_DH, dh_p_1, DH_P_1_LEN, NULL, &sha1_desc };
-static const struct dropbear_kex kex_dh_group14 = {DROPBEAR_KEX_NORMAL_DH, dh_p_14, DH_P_14_LEN, NULL, &sha1_desc };
+static const struct dropbear_kex kex_dh_group14_sha1 = {DROPBEAR_KEX_NORMAL_DH, dh_p_14, DH_P_14_LEN, NULL, &sha1_desc };
+static const struct dropbear_kex kex_dh_group14_sha256 = {DROPBEAR_KEX_NORMAL_DH, dh_p_14, DH_P_14_LEN, NULL, &sha256_desc };
/* These can't be const since dropbear_ecc_fill_dp() fills out
ecc_curve at runtime */
@@ -285,7 +286,8 @@ algo_type sshkex[] = {
{"ecdh-sha2-nistp256", 0, &kex_ecdh_nistp256, 1, NULL},
#endif
#endif
- {"diffie-hellman-group14-sha1", 0, &kex_dh_group14, 1, NULL},
+ {"diffie-hellman-group14-sha256", 0, &kex_dh_group14_sha256, 1, NULL},
+ {"diffie-hellman-group14-sha1", 0, &kex_dh_group14_sha1, 1, NULL},
{"diffie-hellman-group1-sha1", 0, &kex_dh_group1, 1, NULL},
#ifdef USE_KEXGUESS2
{KEXGUESS2_ALGO_NAME, KEXGUESS2_ALGO_ID, NULL, 1, NULL},
diff --git a/debian/changelog b/debian/changelog
index 7de6617..79ea117 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+dropbear (2015.71-0.1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Matt Johnston <matt@ucc.asn.au> Thu, 3 Dec 2015 22:52:58 +0800
+
dropbear (2015.70-0.1) unstable; urgency=low
* New upstream release.
diff --git a/runopts.h b/runopts.h
index 4870c9c..92c105b 100644
--- a/runopts.h
+++ b/runopts.h
@@ -72,7 +72,8 @@ typedef struct svr_runopts {
int forkbg;
int usingsyslog;
- /* ports is an array of the portcount listening ports */
+ /* ports and addresses are arrays of the portcount
+ listening ports. strings are malloced. */
char *ports[DROPBEAR_MAX_PORTS];
unsigned int portcount;
char *addresses[DROPBEAR_MAX_PORTS];
diff --git a/svr-runopts.c b/svr-runopts.c
index 5bb51f2..0e70998 100644
--- a/svr-runopts.c
+++ b/svr-runopts.c
@@ -33,7 +33,7 @@
svr_runopts svr_opts; /* GLOBAL */
static void printhelp(const char * progname);
-static void addportandaddress(char* spec);
+static void addportandaddress(const char* spec);
static void loadhostkey(const char *keyfile, int fatal_duplicate);
static void addhostkey(const char *keyfile);
@@ -348,54 +348,56 @@ void svr_getopts(int argc, char ** argv) {
}
}
-static void addportandaddress(char* spec) {
-
- char *myspec = NULL;
+static void addportandaddress(const char* spec) {
+ char *spec_copy = NULL, *myspec = NULL, *port = NULL, *address = NULL;
if (svr_opts.portcount < DROPBEAR_MAX_PORTS) {
/* We don't free it, it becomes part of the runopt state */
- myspec = m_strdup(spec);
+ spec_copy = m_strdup(spec);
+ myspec = spec_copy;
if (myspec[0] == '[') {
myspec++;
- svr_opts.ports[svr_opts.portcount] = strchr(myspec, ']');
- if (svr_opts.ports[svr_opts.portcount] == NULL) {
+ port = strchr(myspec, ']');
+ if (!port) {
/* Unmatched [ -> exit */
dropbear_exit("Bad listen address");
}
- svr_opts.ports[svr_opts.portcount][0] = '\0';
- svr_opts.ports[svr_opts.portcount]++;
- if (svr_opts.ports[svr_opts.portcount][0] != ':') {
+ port[0] = '\0';
+ port++;
+ if (port[0] != ':') {
/* Missing port -> exit */
dropbear_exit("Missing port");
}
} else {
/* search for ':', that separates address and port */
- svr_opts.ports[svr_opts.portcount] = strrchr(myspec, ':');
+ port = strrchr(myspec, ':');
}
- if (svr_opts.ports[svr_opts.portcount] == NULL) {
+ if (!port) {
/* no ':' -> the whole string specifies just a port */
- svr_opts.ports[svr_opts.portcount] = myspec;
+ port = myspec;
} else {
/* Split the address/port */
- svr_opts.ports[svr_opts.portcount][0] = '\0';
- svr_opts.ports[svr_opts.portcount]++;
- svr_opts.addresses[svr_opts.portcount] = myspec;
+ port[0] = '\0';
+ port++;
+ address = myspec;
}
- if (svr_opts.addresses[svr_opts.portcount] == NULL) {
+ if (!address) {
/* no address given -> fill in the default address */
- svr_opts.addresses[svr_opts.portcount] = m_strdup(DROPBEAR_DEFADDRESS);
+ address = DROPBEAR_DEFADDRESS;
}
- if (svr_opts.ports[svr_opts.portcount][0] == '\0') {
+ if (port[0] == '\0') {
/* empty port -> exit */
dropbear_exit("Bad port");
}
-
+ svr_opts.ports[svr_opts.portcount] = m_strdup(port);
+ svr_opts.addresses[svr_opts.portcount] = m_strdup(address);
svr_opts.portcount++;
+ m_free(spec_copy);
}
}
diff --git a/sysoptions.h b/sysoptions.h
index 0ca491a..a29cbbe 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -4,7 +4,7 @@
*******************************************************************/
#ifndef DROPBEAR_VERSION
-#define DROPBEAR_VERSION "2015.70"
+#define DROPBEAR_VERSION "2015.71"
#endif
#define LOCAL_IDENT "SSH-2.0-dropbear_" DROPBEAR_VERSION