aboutsummaryrefslogtreecommitdiff
path: root/src/libmbedcrypto.c
diff options
context:
space:
mode:
authorTilo Eckert <tilo.eckert@flam.de>2019-02-18 12:39:47 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-02-21 10:51:22 +0100
commit17df34da9621b7c81666f9a1af98f3065627a502 (patch)
treef058053c486b5121314e5c8641fbcd4b45e88359 /src/libmbedcrypto.c
parent7caf6d2ab62dc2ac964808cedae48d75c4156ddd (diff)
downloadlibssh-17df34da9621b7c81666f9a1af98f3065627a502.tar.gz
libssh-17df34da9621b7c81666f9a1af98f3065627a502.tar.xz
libssh-17df34da9621b7c81666f9a1af98f3065627a502.zip
crypto: Use uint8_t instead of non-standard u_char
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src/libmbedcrypto.c')
-rw-r--r--src/libmbedcrypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmbedcrypto.c b/src/libmbedcrypto.c
index d5945c27..b6a0379e 100644
--- a/src/libmbedcrypto.c
+++ b/src/libmbedcrypto.c
@@ -925,9 +925,9 @@ cipher_decrypt_gcm(struct ssh_cipher_struct *cipher,
AES_GCM_IVLEN,
complete_packet, /* aad */
aadlen,
- (const u_char *)complete_packet + aadlen + encrypted_size, /* tag */
+ (const uint8_t *)complete_packet + aadlen + encrypted_size, /* tag */
authlen,
- (const u_char *)complete_packet + aadlen, /* input */
+ (const uint8_t *)complete_packet + aadlen, /* input */
(unsigned char *)out); /* output */
if (rc != 0) {
SSH_LOG(SSH_LOG_WARNING, "mbedtls_gcm_auth_decrypt failed");