aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2015-03-20 23:49:53 +0100
committerDan Fandrich <dan@coneharvesters.com>2015-03-20 23:49:53 +0100
commit6779c50e262584430f4d1eafc0cce3fec1571990 (patch)
treed957929247b09886f1f23578ab7c64fc48fdd60e
parent1f651d1d4d6d3b6c05e2ebf229ccd10ae2af1991 (diff)
cyassl: use new library version macro when available
-rw-r--r--lib/vtls/cyassl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c
index cc29b0d10..d296ed308 100644
--- a/lib/vtls/cyassl.c
+++ b/lib/vtls/cyassl.c
@@ -448,7 +448,9 @@ void Curl_cyassl_session_free(void *ptr)
size_t Curl_cyassl_version(char *buffer, size_t size)
{
-#ifdef CYASSL_VERSION
+#if defined(LIBCYASSL_VERSION_STRING)
+ return snprintf(buffer, size, "CyaSSL/%s", LIBCYASSL_VERSION_STRING);
+#elif defined(CYASSL_VERSION)
return snprintf(buffer, size, "CyaSSL/%s", CYASSL_VERSION);
#else
return snprintf(buffer, size, "CyaSSL/%s", "<1.8.8");