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.
This commit is contained in:
Daniel Stenberg 2012-04-06 14:44:36 +02:00
parent 1dd69921d3
commit 118e73306d
1 changed files with 3 additions and 1 deletions

View File

@ -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