Support for mbed TLS 2.4 fixes #102
authorFelix Morgner <felix.morgner@gmail.com>
Thu, 26 Jan 2017 13:06:08 +0000 (14:06 +0100)
committerFelix Morgner <felix.morgner@gmail.com>
Thu, 26 Jan 2017 13:06:08 +0000 (14:06 +0100)
src/ssl.h

index 2bb80e2a9b76ebe87b695a3fd6e209875c4a72b5..3d402830142b3dcacf313910e571724527b38527 100644 (file)
--- a/src/ssl.h
+++ b/src/ssl.h
@@ -90,7 +90,11 @@ typedef      ssl_context SSL_handle_t;
 
 #elif defined(USE_MBEDTLS)
 #include <mbedtls/ssl.h>
+#if (MBEDTLS_VERSION_MINOR > 3)
+#include <mbedtls/net_socket.h>
+#else
 #include <mbedtls/net.h>
+#endif
 #include <mbedtls/version.h>
 
 #if defined(MBEDTLS_VERSION_MAJOR)