From f4ca28a0f49ff23c8a9835fe62e209aa2c7b5e61 Mon Sep 17 00:00:00 2001 From: Pavel Kryukov Date: Sat, 26 May 2018 14:16:12 +0300 Subject: [PATCH] Add a missing const Dummy version of 'aes_setup_ni` function (for compilers that do not support AES extenstions) must have same signature as actual function --- sshaes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshaes.c b/sshaes.c index 759593d7..0b09a6a6 100644 --- a/sshaes.c +++ b/sshaes.c @@ -1707,7 +1707,7 @@ static void aes_setup_ni(AESContext * ctx, #else /* COMPILER_SUPPORTS_AES_NI */ -static void aes_setup_ni(AESContext * ctx, unsigned char *key, int keylen) +static void aes_setup_ni(AESContext * ctx, const unsigned char *key, int keylen) { assert(0); }