From 5bdb7a50796308b336dd356c2df513586ec36cdd Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 23 Nov 2018 12:56:25 +0100 Subject: [PATCH] crypto: Avoid unused parameter warnings Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- src/libcrypto.c | 1 + src/libgcrypt.c | 1 + src/libmbedcrypto.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/libcrypto.c b/src/libcrypto.c index 588c4493..9c482aa0 100644 --- a/src/libcrypto.c +++ b/src/libcrypto.c @@ -705,6 +705,7 @@ evp_cipher_aead_get_length(struct ssh_cipher_struct *cipher, size_t len, uint64_t seq) { + (void)cipher; (void)seq; /* The length is not encrypted: Copy it to the result buffer */ diff --git a/src/libgcrypt.c b/src/libgcrypt.c index 2b4e3371..3201434b 100644 --- a/src/libgcrypt.c +++ b/src/libgcrypt.c @@ -422,6 +422,7 @@ aes_aead_get_length(struct ssh_cipher_struct *cipher, size_t len, uint64_t seq) { + (void)cipher; (void)seq; /* The length is not encrypted: Copy it to the result buffer */ diff --git a/src/libmbedcrypto.c b/src/libmbedcrypto.c index 8c0f5b4c..d8799eef 100644 --- a/src/libmbedcrypto.c +++ b/src/libmbedcrypto.c @@ -853,6 +853,7 @@ cipher_gcm_get_length(struct ssh_cipher_struct *cipher, size_t len, uint64_t seq) { + (void)cipher; (void)seq; /* The length is not encrypted: Copy it to the result buffer */