From 3ce9e34ec9eb3217f7b5296181f8fbba14cf137a Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Fri, 31 May 2024 15:35:52 +0200 Subject: [PATCH] include/crypto/curve25519.h: fix gcc14 error /home/raiden00/git/RTOS/nuttx/nuttx/include/crypto/curve25519.h:42:5: error: implicit declaration of function 'arc4random_buf' [-Wimplicit-function-declaration] 42 | arc4random_buf(secret, CURVE25519_KEY_SIZE); --- include/crypto/curve25519.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/crypto/curve25519.h b/include/crypto/curve25519.h index d5d239895e..d50daed99b 100644 --- a/include/crypto/curve25519.h +++ b/include/crypto/curve25519.h @@ -20,6 +20,12 @@ #ifndef __INCLUDE_CRYPTO_CURVE25519_H #define __INCLUDE_CRYPTO_CURVE25519_H +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include + #define CURVE25519_KEY_SIZE 32 int curve25519(uint8_t out[CURVE25519_KEY_SIZE],