From 37cb7c74987e2f74294a3e6bc65e205f813d3569 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 14 Mar 2012 00:10:31 +0000 Subject: [PATCH] [crypto] Use real prototypes for AXTLS' AES_encrypt() and AES_decrypt() Avoid a compiler warning on some versions of gcc by using real function prototypes. Reported-by: Rob Shelley Signed-off-by: Michael Brown --- src/crypto/axtls/os_port.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/axtls/os_port.h b/src/crypto/axtls/os_port.h index 0a6ef54a..76313e20 100644 --- a/src/crypto/axtls/os_port.h +++ b/src/crypto/axtls/os_port.h @@ -35,10 +35,10 @@ static inline void get_random_NZ ( int num_rand_bytes, uint8_t *rand_data ) { #define aes 1 #if OBJECT -/* AES_CTX is not defined at this point, so omit prototypes */ +struct aes_key_st; -static void AES_encrypt(); -static void AES_decrypt(); +static void AES_encrypt ( const struct aes_key_st *ctx, uint32_t *data ); +static void AES_decrypt ( const struct aes_key_st *ctx, uint32_t *data ); void axtls_aes_encrypt ( void *ctx, uint32_t *data ) { AES_encrypt ( ctx, data );