aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-04-06 14:44:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-04-06 14:44:36 +0200
commit118e73306d142a3146356ebf24e2446a65e9fe6f (patch)
tree59940618def358bccc24f9d04bdf20f60897894c
parent1dd69921d314b9d44dce9836e7f2c65272241afd (diff)
PolarSSL: include version number in version string
Previously it would say PolarSSL only, now it says PolarSSL/1.1.0 in the same style other libs and components do.
-rw-r--r--lib/polarssl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/polarssl.c b/lib/polarssl.c
index c890a07db..15a3e15b5 100644
--- a/lib/polarssl.c
+++ b/lib/polarssl.c
@@ -432,7 +432,9 @@ void Curl_polarssl_session_free(void *ptr)
size_t Curl_polarssl_version(char *buffer, size_t size)
{
- return snprintf(buffer, size, "PolarSSL");
+ unsigned int version = version_get_number();
+ return snprintf(buffer, size, "PolarSSL/%d.%d.%d", version>>24,
+ (version>>16)&0xff, (version>>8)&0xff);
}
static CURLcode