diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-04-06 14:44:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-04-06 14:44:36 +0200 |
commit | 118e73306d142a3146356ebf24e2446a65e9fe6f (patch) | |
tree | 59940618def358bccc24f9d04bdf20f60897894c /lib | |
parent | 1dd69921d314b9d44dce9836e7f2c65272241afd (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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/polarssl.c | 4 |
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 |