From 1647b30f1a12906a5431941fe5f5a858b263c210 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 16 Oct 2015 22:43:28 +0200 Subject: [PATCH] Constify --- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c index 810a4e5d..533d0970 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -781,7 +781,8 @@ crypto_aead_aes256gcm_encrypt(unsigned char *c, crypto_aead_aes256gcm_beforenm(&ctx, k); return crypto_aead_aes256gcm_encrypt_afternm - (c, clen_p, m, mlen, ad, adlen, nsec, npub, &ctx); + (c, clen_p, m, mlen, ad, adlen, nsec, npub, + (const crypto_aead_aes256gcm_state *) &ctx); } int @@ -800,7 +801,8 @@ crypto_aead_aes256gcm_decrypt(unsigned char *m, crypto_aead_aes256gcm_beforenm(&ctx, k); return crypto_aead_aes256gcm_decrypt_afternm - (m, mlen_p, nsec, c, clen, ad, adlen, npub, &ctx); + (m, mlen_p, nsec, c, clen, ad, adlen, npub, + (const crypto_aead_aes256gcm_state *) &ctx); } int