]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[crypto] Use real prototypes for AXTLS' AES_encrypt() and AES_decrypt()
authorMichael Brown <mcb30@ipxe.org>
Wed, 14 Mar 2012 00:10:31 +0000 (00:10 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 14 Mar 2012 00:12:02 +0000 (00:12 +0000)
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>
src/crypto/axtls/os_port.h

index 0a6ef54a9bbfcf722b98b2be97a793c84de50c6b..76313e204be79577220fc27ce6d683a7e5f98f46 100644 (file)
@@ -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 );