Commit f601807e authored by Niels Möller's avatar Niels Möller
Browse files

* src/version.h (SOFTWARE_SLOGAN): New macro; string appended to

the software version in the initial handshake.

Rev: src/lsh.c:1.197
Rev: src/lsh_proxy.c:1.37
Rev: src/lshd.c:1.165
Rev: src/version.h:1.12
parent 42192d45
......@@ -1048,7 +1048,7 @@ int main(int argc, char **argv, const char** envp)
lsh_connect =
make_lsh_connect(
make_handshake_info(CONNECTION_CLIENT,
"lsh - a free ssh", NULL,
SOFTWARE_SLOGAN, NULL,
SSH_MAX_PACKET,
options->super.random,
options->algorithms->algorithms,
......
......@@ -776,7 +776,7 @@ int main(int argc, char **argv)
(struct command *)lsh_proxy_handshake_server(make_fake_host_db(),
make_handshake_info
(CONNECTION_CLIENT,
"lsh_proxy_client - a free ssh",
"lsh_proxy_client",
"proxy client",
SSH_MAX_PACKET,
r,
......@@ -785,7 +785,7 @@ int main(int argc, char **argv)
make_kexinit),
(struct command *)lsh_proxy_handshake_client(make_handshake_info
(CONNECTION_SERVER,
"lsh_proxy_server - a free ssh",
"lsh_proxy_server",
"proxy server",
SSH_MAX_PACKET,
r,
......
......@@ -1117,7 +1117,7 @@ make_lshd_listen_callback(struct lshd_options *options,
CAST_SUBTYPE(command, server_callback,
lshd_listen_callback
(make_handshake_info(CONNECTION_SERVER,
"lsh - a free ssh",
SOFTWARE_SLOGAN,
NULL,
SSH_MAX_PACKET,
options->random,
......
......@@ -27,8 +27,10 @@
#define CLIENT_PROTOCOL_VERSION "2.0"
#define SERVER_PROTOCOL_VERSION "2.0"
#define SOFTWARE_CLIENT_VERSION ("lsh_" VERSION)
#define SOFTWARE_SERVER_VERSION ("lshd_" VERSION)
#define SOFTWARE_CLIENT_VERSION ("lsh-" VERSION)
#define SOFTWARE_SERVER_VERSION ("lshd-" VERSION)
#define SOFTWARE_SLOGAN "lsh - a GNU ssh"
#define BUG_ADDRESS "<bug-lsh@gnu.org>"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment