mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
cmake: Fix check for bounded attribute
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -334,9 +334,13 @@ int main(void) {
|
|||||||
|
|
||||||
|
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
void chacha_keysetup(struct chacha_ctx *x, const u_char *k, u_int kbits)
|
#define ARRAY_LEN 16
|
||||||
__attribute__((__bounded__(__minbytes__, 2, CHACHA_MINKEYLEN)));
|
void test_attr(const unsigned char *k)
|
||||||
int main(void) { return 0; }" HAVE_GCC_BOUNDED_ATTRIBUTE)
|
__attribute__((__bounded__(__minbytes__, 2, 16)));
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
return 0;
|
||||||
|
}" HAVE_GCC_BOUNDED_ATTRIBUTE)
|
||||||
|
|
||||||
if (WITH_DEBUG_CRYPTO)
|
if (WITH_DEBUG_CRYPTO)
|
||||||
set(DEBUG_CRYPTO 1)
|
set(DEBUG_CRYPTO 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user