From: Michael Brown Date: Wed, 14 Mar 2012 00:10:31 +0000 (+0000) Subject: [crypto] Use real prototypes for AXTLS' AES_encrypt() and AES_decrypt() X-Git-Tag: v1.20.1~1943 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37cb7c74987e2f74294a3e6bc65e205f813d3569;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/crypto/axtls/os_port.h b/src/crypto/axtls/os_port.h index 0a6ef54a9..76313e204 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 );