X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/067a15ea093c726b3ce3bf96c3f3e27744da3271..c5e438ecf3f6d7b8caab10e43a452f3555149309:/version.c diff --git a/version.c b/version.c index 834beec8..c39709cd 100644 --- a/version.c +++ b/version.c @@ -8,13 +8,22 @@ #if defined SNAPSHOT char ver[] = "Development snapshot " STR(SNAPSHOT); +char sshver[] = "PuTTY-Snapshot-" STR(SNAPSHOT); #elif defined RELEASE char ver[] = "Release " STR(RELEASE); +char sshver[] = "PuTTY-Release-" STR(RELEASE); #else char ver[] = "Unidentified build, " __DATE__ " " __TIME__; +char sshver[] = "PuTTY-Local: " __DATE__ " " __TIME__; #endif + +/* + * SSH local version string MUST be under 40 characters. Here's a + * compile time assertion to verify this. + */ +enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };