projects/aports·blob master · refs

23 lines · 907 B

1--- a/include/dislocker/ssl_bindings.h.in
2+++ b/include/dislocker/ssl_bindings.h.in
3@@ -26,18 +26,14 @@
4 /*
5 * Here stand the bindings for polarssl SHA256/SHA2/SHA-2 function for dislocker
6 */
7-#include "@POLARSSL_INC_FOLDER@/config.h"
8+#include "@POLARSSL_INC_FOLDER@/mbedtls_config.h"
9 #include "@POLARSSL_INC_FOLDER@/version.h"
10 #include "@POLARSSL_INC_FOLDER@/aes.h"
11
12 // Function's name changed
13 #if defined(MBEDTLS_SHA256_C)
14 # include "mbedtls/sha256.h"
15-# if MBEDTLS_VERSION_NUMBER >= 0x02070000
16-# define SHA256(input, len, output) mbedtls_sha256_ret(input, len, output, 0)
17-# else
18-# define SHA256(input, len, output) mbedtls_sha256(input, len, output, 0)
19-# endif /* POLARSSL_VERSION_NUMBER >= 0x02070000 */
20+# define SHA256(input, len, output) mbedtls_sha256(input, len, output, 0)
21 #else /* defined(MBEDTLS_SHA256_C) */
22
23 # if defined(POLARSSL_SHA256_C)