diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-04 11:13:16 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-04 11:14:15 +0100 |
commit | 9ea3a6e150dfc822ba1565f649b634848597d2d9 (patch) | |
tree | 49e60479094bff8644e94f06538f1d14acb317d5 | |
parent | 6724242cf15bfb9987ff5dfe00fe95667f42f0f9 (diff) |
mbedtls: fix build with mbedtls versions < 2.4.0
Regression added in 62a8095e714
Reported-by: Tony Kelman
Discussed in #1087
-rw-r--r-- | lib/vtls/mbedtls.c | 6 |
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> |