]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
OpenSSH: allow VersionAddendum to be used again
authorrea <rea@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jun 2012 18:00:38 +0000 (18:00 +0000)
committerrea <rea@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jun 2012 18:00:38 +0000 (18:00 +0000)
commitf6b9511aff32b5cf1486895c2ee5685f4fa1ef97
tree234f8361aee5a13c10798c23e0d37ada0b538431
parentaa36f5efdbb5d9c18cce9e7b886b127f2bc4e65a
OpenSSH: allow VersionAddendum to be used again

Prior to this, setting VersionAddendum will be a no-op: one will
always have BASE_VERSION + " " + VERSION_HPN for VersionAddendum
set in the config and a bare BASE_VERSION + VERSION_HPN when there
is no VersionAddendum is set.

HPN patch requires both parties to have the "hpn" inside their
advertized versions, so we add VERSION_HPN to the VERSION_BASE
if HPN is enabled and omitting it if HPN is disabled.

VersionAddendum now uses the following logics:
 * unset (default value): append " " and VERSION_ADDENDUM;
 * VersionAddendum is set and isn't empty: append " "
   and VersionAddendum;
 * VersionAddendum is set and empty: don't append anything.

Approved by: des
Reviewed by: bz

git-svn-id: svn://svn.freebsd.org/base/stable/9@236520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
crypto/openssh/ssh.c
crypto/openssh/sshconnect.c
crypto/openssh/sshd.c
crypto/openssh/version.c
crypto/openssh/version.h