aboutsummaryrefslogtreecommitdiff
path: root/src/libcrypto.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-11-30 18:46:35 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-11-30 18:47:25 +0100
commitcf24048f0251f823625ddde892c3b8de93cefd25 (patch)
tree9680594868f97423a089296f801602f524d35ad8 /src/libcrypto.c
parentf427a975b8a4b2aee2ba0c37e28d6ebbf84c67fb (diff)
downloadlibssh-cf24048f0251f823625ddde892c3b8de93cefd25.tar.gz
libssh-cf24048f0251f823625ddde892c3b8de93cefd25.tar.xz
libssh-cf24048f0251f823625ddde892c3b8de93cefd25.zip
libcrypto: Fix integer comparison in evp_cipher_aead_encrypt()
src/libcrypto.c:773:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] <--[cc] if (rc != 1 || outlen != len - aadlen) { ^~ Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/libcrypto.c')
-rw-r--r--src/libcrypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcrypto.c b/src/libcrypto.c
index fb77c89f..9d8ff3b0 100644
--- a/src/libcrypto.c
+++ b/src/libcrypto.c
@@ -770,7 +770,7 @@ evp_cipher_aead_encrypt(struct ssh_cipher_struct *cipher,
&outlen,
(unsigned char *)in + aadlen,
(int)len - aadlen);
- if (rc != 1 || outlen != len - aadlen) {
+ if (rc != 1 || outlen != (int)len - aadlen) {
SSH_LOG(SSH_LOG_WARNING, "EVP_EncryptUpdate failed");
return;
}