diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-11-13 21:00:58 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-11-13 21:00:58 +0000 |
commit | a68ec967e3187390b53c55a1a4ed2565cc2fdab4 (patch) | |
tree | bbb47e5c57a1994a0d3afeb170fe2ec17c1d5921 /lib | |
parent | b25ba9faa4caf81dc1c542768f0973bfae607d13 (diff) |
AES_{decrypt,encrypt}() don't return void internal function
"A return statement with an expression shall not appear in a function
whose return type is void."
ok deraadt miod
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/aes/aes_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/aes/aes_core.c b/lib/libcrypto/aes/aes_core.c index 0472d5f4e23..4383d74903b 100644 --- a/lib/libcrypto/aes/aes_core.c +++ b/lib/libcrypto/aes/aes_core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aes_core.c,v 1.24 2024/08/11 13:02:39 jsing Exp $ */ +/* $OpenBSD: aes_core.c,v 1.25 2024/11/13 21:00:57 tb Exp $ */ /** * rijndael-alg-fst.c * @@ -1021,7 +1021,7 @@ aes_encrypt_internal(const unsigned char *in, unsigned char *out, void AES_encrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key) { - return aes_encrypt_internal(in, out, key); + aes_encrypt_internal(in, out, key); } LCRYPTO_ALIAS(AES_encrypt); @@ -1224,6 +1224,6 @@ aes_decrypt_internal(const unsigned char *in, unsigned char *out, void AES_decrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key) { - return aes_decrypt_internal(in, out, key); + aes_decrypt_internal(in, out, key); } LCRYPTO_ALIAS(AES_decrypt); |