浏览代码

[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>
tags/v1.20.1
Michael Brown 13 年前
父节点
当前提交
37cb7c7498
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/crypto/axtls/os_port.h

+ 3
- 3
src/crypto/axtls/os_port.h 查看文件

35
 #define aes 1
35
 #define aes 1
36
 #if OBJECT
36
 #if OBJECT
37
 
37
 
38
-/* AES_CTX is not defined at this point, so omit prototypes */
38
+struct aes_key_st;
39
 
39
 
40
-static void AES_encrypt();
41
-static void AES_decrypt();
40
+static void AES_encrypt ( const struct aes_key_st *ctx, uint32_t *data );
41
+static void AES_decrypt ( const struct aes_key_st *ctx, uint32_t *data );
42
 
42
 
43
 void axtls_aes_encrypt ( void *ctx, uint32_t *data ) {
43
 void axtls_aes_encrypt ( void *ctx, uint32_t *data ) {
44
 	AES_encrypt ( ctx, data );
44
 	AES_encrypt ( ctx, data );

正在加载...
取消
保存