From owner-svn-ports-all@FreeBSD.ORG Thu Apr 9 02:33:49 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 099428EB; Thu, 9 Apr 2015 02:33:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E8CA9F55; Thu, 9 Apr 2015 02:33:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t392XmgW095693; Thu, 9 Apr 2015 02:33:48 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t392XlCF095690; Thu, 9 Apr 2015 02:33:47 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201504090233.t392XlCF095690@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Thu, 9 Apr 2015 02:33:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r383618 - in head/security/openssh-portable: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2015 02:33:49 -0000 Author: bdrewery Date: Thu Apr 9 02:33:47 2015 New Revision: 383618 URL: https://svnweb.freebsd.org/changeset/ports/383618 Log: Fix TTSSH (Tera Type/Term) client crash: Unexpected SSH2 message(80) on current stage(6) This patch was submitted upstream. The client has fixed it in their SVN [1][2] but not yet released a fixed build. [1] http://en.sourceforge.jp/ticket/browse.php?group_id=1412&tid=35010 [2] http://en.sourceforge.jp/projects/ttssh2/scm/svn/commits/5829 Added: head/security/openssh-portable/files/extra-patch-ttssh (contents, props changed) Modified: head/security/openssh-portable/Makefile head/security/openssh-portable/files/extra-patch-hpn Modified: head/security/openssh-portable/Makefile ============================================================================== --- head/security/openssh-portable/Makefile Thu Apr 9 02:04:35 2015 (r383617) +++ head/security/openssh-portable/Makefile Thu Apr 9 02:33:47 2015 (r383618) @@ -3,7 +3,7 @@ PORTNAME= openssh DISTVERSION= 6.8p1 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= security ipv6 MASTER_SITES= ${MASTER_SITE_OPENBSD} @@ -48,6 +48,7 @@ NONECIPHER_DESC= NONE Cipher support OPTIONS_SUB= yes +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ttssh TCP_WRAPPERS_EXTRA_PATCHES=${FILESDIR}/extra-patch-tcpwrappers LDNS_CONFIGURE_WITH= ldns Modified: head/security/openssh-portable/files/extra-patch-hpn ============================================================================== --- head/security/openssh-portable/files/extra-patch-hpn Thu Apr 9 02:04:35 2015 (r383617) +++ head/security/openssh-portable/files/extra-patch-hpn Thu Apr 9 02:33:47 2015 (r383618) @@ -400,12 +400,13 @@ diff -urN -x configure -x config.guess - } --- work.clean/openssh-6.8p1/compat.h 2015-03-17 00:49:20.000000000 -0500 +++ work/openssh-6.8p1/compat.h 2015-04-03 16:39:34.780416000 -0500 -@@ -60,6 +60,9 @@ +@@ -60,7 +60,10 @@ #define SSH_NEW_OPENSSH 0x04000000 #define SSH_BUG_DYNAMIC_RPORT 0x08000000 #define SSH_BUG_CURVE25519PAD 0x10000000 + #define SSH_BUG_HOSTKEYS 0x20000000 +#ifdef HPN_ENABLED -+#define SSH_BUG_LARGEWINDOW 0x20000000 ++#define SSH_BUG_LARGEWINDOW 0x40000000 +#endif void enable_compat13(void); Added: head/security/openssh-portable/files/extra-patch-ttssh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/openssh-portable/files/extra-patch-ttssh Thu Apr 9 02:33:47 2015 (r383618) @@ -0,0 +1,32 @@ +--- compat.c.orig 2015-04-08 21:02:53.327154000 -0500 ++++ compat.c 2015-04-08 21:03:58.915062000 -0500 +@@ -167,6 +167,8 @@ + SSH_BUG_SCANNER }, + { "Probe-*", + SSH_BUG_PROBE }, ++ { "TTSSH/*", ++ SSH_BUG_HOSTKEYS }, + { NULL, 0 } + }; + +--- compat.h.orig 2015-04-08 21:02:42.865971000 -0500 ++++ compat.h 2015-04-08 21:04:06.865029000 -0500 +@@ -60,6 +60,7 @@ + #define SSH_NEW_OPENSSH 0x04000000 + #define SSH_BUG_DYNAMIC_RPORT 0x08000000 + #define SSH_BUG_CURVE25519PAD 0x10000000 ++#define SSH_BUG_HOSTKEYS 0x20000000 + + void enable_compat13(void); + void enable_compat20(void); +--- sshd.c.orig 2015-04-08 21:01:02.944936000 -0500 ++++ sshd.c 2015-04-08 21:03:55.086137000 -0500 +@@ -2321,7 +2321,7 @@ + options.client_alive_count_max); + + /* Try to send all our hostkeys to the client */ +- if (compat20) ++ if (compat20 && (datafellows & SSH_BUG_HOSTKEYS) == 0) + notify_hostkeys(active_state); + + /* Start session. */