aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-03-25 09:19:57 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-03-25 09:19:57 +0100
commit5b58bface3889c13f4f4aeb5a053caa6b747374c (patch)
treebb911a1a1af65efc63bcfefe2c9aa132f0677a7c
parent83b29e43cddedbee4ffd54a58f5ae7d55fb0ac18 (diff)
polarssl: called mbedTLS in 1.3.10 and later
-rw-r--r--lib/vtls/polarssl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c
index 1828df05c..066c055e6 100644
--- a/lib/vtls/polarssl.c
+++ b/lib/vtls/polarssl.c
@@ -587,11 +587,15 @@ void Curl_polarssl_session_free(void *ptr)
free(ptr);
}
+/* 1.3.10 was the first rebranded version. All new releases (in 1.3 branch and
+ higher) will be mbed TLS branded.. */
+
size_t Curl_polarssl_version(char *buffer, size_t size)
{
unsigned int version = version_get_number();
- return snprintf(buffer, size, "PolarSSL/%d.%d.%d", version>>24,
- (version>>16)&0xff, (version>>8)&0xff);
+ return snprintf(buffer, size, "%s/%d.%d.%d",
+ version >= 0x01030A00?"mbedTLS":"PolarSSL",
+ version>>24, (version>>16)&0xff, (version>>8)&0xff);
}
static CURLcode