mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-23 14:04:59 +02:00
version identifier expanded to provide more info
win32 port says if Visual Studio was used (Win32 port with VS ). MingW compiler version would say "Win32 port" .
This commit is contained in:
parent
4d952924e1
commit
f4fa821b6a
@ -681,9 +681,14 @@ send_client_banner(int connection_out, int minor1)
|
|||||||
xasprintf(&client_version_string, "SSH-%d.%d-%.100s\r\n",
|
xasprintf(&client_version_string, "SSH-%d.%d-%.100s\r\n",
|
||||||
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION);
|
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION);
|
||||||
#else
|
#else
|
||||||
|
#ifdef WIN32_VS
|
||||||
|
xasprintf(&client_version_string, "SSH-%d.%d-%.100sp1 Microsoft Win32 port with VS %s\r\n",
|
||||||
|
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION, __DATE__ );
|
||||||
|
#else
|
||||||
xasprintf(&client_version_string, "SSH-%d.%d-%.100sp1 Microsoft Win32 port %s\r\n",
|
xasprintf(&client_version_string, "SSH-%d.%d-%.100sp1 Microsoft Win32 port %s\r\n",
|
||||||
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION, __DATE__ );
|
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION, __DATE__ );
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
xasprintf(&client_version_string, "SSH-%d.%d-%.100s\n",
|
xasprintf(&client_version_string, "SSH-%d.%d-%.100s\n",
|
||||||
PROTOCOL_MAJOR_1, minor1, SSH_VERSION);
|
PROTOCOL_MAJOR_1, minor1, SSH_VERSION);
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
#ifndef WIN32_FIXME
|
#ifndef WIN32_FIXME
|
||||||
#define SSH_PORTABLE "p1"
|
#define SSH_PORTABLE "p1"
|
||||||
#else
|
#else
|
||||||
|
#ifdef WIN32_VS
|
||||||
|
#define SSH_PORTABLE "p1 Microsoft Win32 port with VS"
|
||||||
|
#else
|
||||||
#define SSH_PORTABLE "p1 Microsoft Win32 port"
|
#define SSH_PORTABLE "p1 Microsoft Win32 port"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#define SSH_RELEASE SSH_VERSION SSH_PORTABLE
|
#define SSH_RELEASE SSH_VERSION SSH_PORTABLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user