aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-04 11:13:16 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-04 11:14:15 +0100
commit9ea3a6e150dfc822ba1565f649b634848597d2d9 (patch)
tree49e60479094bff8644e94f06538f1d14acb317d5 /lib/vtls
parent6724242cf15bfb9987ff5dfe00fe95667f42f0f9 (diff)
mbedtls: fix build with mbedtls versions < 2.4.0
Regression added in 62a8095e714 Reported-by: Tony Kelman Discussed in #1087
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/mbedtls.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c
index 24249dd65..9f29ff055 100644
--- a/lib/vtls/mbedtls.c
+++ b/lib/vtls/mbedtls.c
@@ -31,11 +31,15 @@
#ifdef USE_MBEDTLS
+#include <mbedtls/version.h>
+#if MBEDTLS_VERSION_NUMBER >= 0x02040000
#include <mbedtls/net_sockets.h>
+#else
+#include <mbedtls/net.h>
+#endif
#include <mbedtls/ssl.h>
#include <mbedtls/certs.h>
#include <mbedtls/x509.h>
-#include <mbedtls/version.h>
#include <mbedtls/error.h>
#include <mbedtls/entropy.h>