1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-24 17:41:01 +03:00

Make mbedtls_ct_zero non-static

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman
2023-06-12 18:19:46 +01:00
parent 2894d007d3
commit 58c80f4d92
2 changed files with 10 additions and 6 deletions

View File

@@ -73,12 +73,7 @@
*/
#if !defined(MBEDTLS_CT_ASM)
/*
* Define an object with the value zero, such that the compiler cannot prove that it
* has the value zero (because it is volatile, it "may be modified in ways unknown to
* the implementation").
*/
static volatile mbedtls_ct_uint_t mbedtls_ct_zero = 0;
extern volatile mbedtls_ct_uint_t mbedtls_ct_zero;
#endif
static inline mbedtls_ct_uint_t mbedtls_ct_compiler_opaque(mbedtls_ct_uint_t x)