From: Martin Willi Date: Thu, 6 Mar 2014 16:35:51 +0000 (+0100) Subject: libimcv: Be a little more verbose about the Windows system reported X-Git-Tag: 5.2.0dr6~24^2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b7d1a3b334f49673e9d05238db6aaf3b4214837;p=thirdparty%2Fstrongswan.git libimcv: Be a little more verbose about the Windows system reported --- diff --git a/src/libimcv/imc/imc_os_info.c b/src/libimcv/imc/imc_os_info.c index 33f9bf5afa..b01a14c017 100644 --- a/src/libimcv/imc/imc_os_info.c +++ b/src/libimcv/imc/imc_os_info.c @@ -133,14 +133,16 @@ static bool extract_platform_info(os_type_t *type, chunk_t *name, return FALSE; } *type = OS_TYPE_WINDOWS; - if (osvie.wProductType == VER_NT_WORKSTATION) - { - *name = chunk_clone(chunk_from_str("Client")); - } - else - { - *name = chunk_clone(chunk_from_str("Server")); - } + snprintf(buf, sizeof(buf), "Windows %s %s", + osvie.wProductType == VER_NT_WORKSTATION ? "Client" : "Server", +#ifdef WIN64 + "x86_64" +#else + "x86" +#endif + ); + *name = chunk_clone(chunk_from_str(buf)); + snprintf(buf, sizeof(buf), "%d.%d.%d (SP %d.%d)", osvie.dwMajorVersion, osvie.dwMinorVersion, osvie.dwBuildNumber, osvie.wServicePackMajor, osvie.wServicePackMinor);