diff options
| author | Michael Brown | 2012-03-14 01:10:31 +0100 |
|---|---|---|
| committer | Michael Brown | 2012-03-14 01:12:02 +0100 |
| commit | 37cb7c74987e2f74294a3e6bc65e205f813d3569 (patch) | |
| tree | da71a95c1d9d101fb6ccf6da0c8a9f253633919e /src/crypto/axtls | |
| parent | [eepro100] Add PCI ID 8086:10fe (diff) | |
| download | ipxe-37cb7c74987e2f74294a3e6bc65e205f813d3569.tar.gz ipxe-37cb7c74987e2f74294a3e6bc65e205f813d3569.tar.xz ipxe-37cb7c74987e2f74294a3e6bc65e205f813d3569.zip | |
[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 <Rob@cirris.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto/axtls')
| -rw-r--r-- | src/crypto/axtls/os_port.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); |
