]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
OpenSSH: allow VersionAddendum to be used again
authorrea <rea@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jun 2012 18:05:19 +0000 (18:05 +0000)
committerrea <rea@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jun 2012 18:05:19 +0000 (18:05 +0000)
commit0e7e8ac15bef38065f9fec487ff25988580a4a6c
tree5a5acb4bace4d597378954c7997ab04f5a5892bc
parent9baea1b588c1d4897bf81e85b1f5aec3f1f86227
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/8@236521 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