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:
quamrulmina 2015-11-06 03:34:53 -06:00
parent 4d952924e1
commit f4fa821b6a
2 changed files with 9 additions and 0 deletions

View File

@ -681,9 +681,14 @@ send_client_banner(int connection_out, int minor1)
xasprintf(&client_version_string, "SSH-%d.%d-%.100s\r\n",
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION);
#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",
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION, __DATE__ );
#endif
#endif
} else {
xasprintf(&client_version_string, "SSH-%d.%d-%.100s\n",
PROTOCOL_MAJOR_1, minor1, SSH_VERSION);

View File

@ -5,6 +5,10 @@
#ifndef WIN32_FIXME
#define SSH_PORTABLE "p1"
#else
#ifdef WIN32_VS
#define SSH_PORTABLE "p1 Microsoft Win32 port with VS"
#else
#define SSH_PORTABLE "p1 Microsoft Win32 port"
#endif
#endif
#define SSH_RELEASE SSH_VERSION SSH_PORTABLE