X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fssl.h;h=ab02a2d6e407c4f54f1d9773162607f41fdbd34f;hb=402424de9b4c7c8e0f42433061c1a1e88013218f;hp=3d402830142b3dcacf313910e571724527b38527;hpb=9fa95cb052994369aefd2f10951c1dac2f510ee3;p=umurmur.git diff --git a/src/ssl.h b/src/ssl.h index 3d40283..ab02a2d 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -89,20 +89,17 @@ int urandom_bytes(void *ctx, unsigned char *dest, size_t len); typedef ssl_context SSL_handle_t; #elif defined(USE_MBEDTLS) -#include -#if (MBEDTLS_VERSION_MINOR > 3) -#include -#else -#include -#endif #include -#if defined(MBEDTLS_VERSION_MAJOR) -#if (MBEDTLS_VERSION_MAJOR < 2) +#if !defined(MBEDTLS_VERSION_MAJOR) || (MBEDTLS_VERSION_MAJOR < 2) #error mbedTLS version 2.0.0 or greater is required! #endif + +#include +#if (MBEDTLS_VERSION_MINOR > 3) +#include #else -#error mbedTLS version 2.0.0 or greater is required! +#include #endif #if defined(USE_MBEDTLS_HAVEGE)