mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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:
parent
1dd69921d3
commit
118e73306d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user