diff options
author | vnugent <public@vaughnnugent.com> | 2024-05-13 22:33:50 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-05-13 22:33:50 -0400 |
commit | d09d9330415d463ca19be9394b02ce11b3366f7e (patch) | |
tree | de5f335b295b524392ccf2c148ed08cd45df1c69 /src | |
parent | 7838cb4bb15d4f453f92f56ece75e2b03986fe42 (diff) |
fix: update mbedtls inline issue includes
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/impl/mbedtls.c | 24 |
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; |