mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-31 03:16:37 +08:00
Merge pull request #10998 from jan-bruckner/mbedtls-3.6
Backport 3.6: Add linkage guard to constant_time.h
This commit is contained in:
commit
8a04fc0861
4
ChangeLog.d/add-linkage-guard.txt
Normal file
4
ChangeLog.d/add-linkage-guard.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Bugfix
|
||||
* Add extern "C" guard to constant_time.h. Fixes
|
||||
https://github.com/Mbed-TLS/TF-PSA-Crypto/issues/930.
|
||||
|
||||
@ -11,6 +11,10 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Constant-time buffer comparison without branches.
|
||||
*
|
||||
* This is equivalent to the standard memcmp function, but is likely to be
|
||||
@ -33,4 +37,8 @@ int mbedtls_ct_memcmp(const void *a,
|
||||
const void *b,
|
||||
size_t n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* MBEDTLS_CONSTANT_TIME_H */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user