aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-05-13 22:33:50 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-05-13 22:33:50 -0400
commitd09d9330415d463ca19be9394b02ce11b3366f7e (patch)
treede5f335b295b524392ccf2c148ed08cd45df1c69 /src
parent7838cb4bb15d4f453f92f56ece75e2b03986fe42 (diff)
fix: update mbedtls inline issue includes
Diffstat (limited to 'src')
-rw-r--r--src/crypto/impl/mbedtls.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/crypto/impl/mbedtls.c b/src/crypto/impl/mbedtls.c
index 057e7b4..df5201f 100644
--- a/src/crypto/impl/mbedtls.c
+++ b/src/crypto/impl/mbedtls.c
@@ -31,20 +31,22 @@
/* Inline errors on linux in header files on linux */
#ifndef inline
#define inline __inline
-#endif
-
-#include <mbedtls/md.h>
-#include <mbedtls/hkdf.h>
-#include <mbedtls/hmac_drbg.h>
-#include <mbedtls/sha256.h>
-#include <mbedtls/chacha20.h>
-#include <mbedtls/constant_time.h>
-
-#ifndef inline
+ #include <mbedtls/md.h>
+ #include <mbedtls/hkdf.h>
+ #include <mbedtls/hmac_drbg.h>
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/chacha20.h>
+ #include <mbedtls/constant_time.h>
#undef inline
+#else
+ #include <mbedtls/md.h>
+ #include <mbedtls/hkdf.h>
+ #include <mbedtls/hmac_drbg.h>
+ #include <mbedtls/sha256.h>
+ #include <mbedtls/chacha20.h>
+ #include <mbedtls/constant_time.h>
#endif
-
_IMPLSTB const mbedtls_md_info_t* _mbed_sha256_alg(void)
{
const mbedtls_md_info_t* info;