Commit 118e7330 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 1dd69921
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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