2015-05-05 10:12:49 +00:00
|
|
|
--- a/lib/vtls/polarssl.c
|
|
|
|
+++ b/lib/vtls/polarssl.c
|
2015-07-03 23:21:01 +00:00
|
|
|
@@ -592,7 +592,7 @@ void Curl_polarssl_session_free(void *pt
|
2015-05-05 10:12:49 +00:00
|
|
|
|
|
|
|
size_t Curl_polarssl_version(char *buffer, size_t size)
|
|
|
|
{
|
|
|
|
- unsigned int version = version_get_number();
|
|
|
|
+ unsigned int version = POLARSSL_VERSION_NUMBER;
|
2015-07-03 23:21:01 +00:00
|
|
|
return snprintf(buffer, size, "%s/%d.%d.%d",
|
|
|
|
version >= 0x01030A00?"mbedTLS":"PolarSSL",
|
|
|
|
version>>24, (version>>16)&0xff, (version>>8)&0xff);
|
2016-02-01 22:37:41 +00:00
|
|
|
--- a/lib/vtls/mbedtls.c
|
|
|
|
+++ b/lib/vtls/mbedtls.c
|
2016-04-17 12:51:19 +00:00
|
|
|
@@ -712,7 +712,7 @@ void Curl_mbedtls_session_free(void *ptr
|
2016-02-01 22:37:41 +00:00
|
|
|
|
|
|
|
size_t Curl_mbedtls_version(char *buffer, size_t size)
|
|
|
|
{
|
|
|
|
- unsigned int version = mbedtls_version_get_number();
|
|
|
|
+ unsigned int version = MBEDTLS_VERSION_NUMBER;
|
|
|
|
return snprintf(buffer, size, "mbedTLS/%d.%d.%d", version>>24,
|
|
|
|
(version>>16)&0xff, (version>>8)&0xff);
|
|
|
|
}
|