From e0b813fda4caef9ade348b547a0e89c693e86197 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 8 Jan 2024 09:31:09 +0000 Subject: [PATCH] const correct aesni_{128,256}_cbc_hmac_sha1_cipher --- lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c b/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c index 09a73da7482..4241436451c 100644 --- a/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c +++ b/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_aes_cbc_hmac_sha1.c,v 1.19 2023/07/07 19:37:53 beck Exp $ */ +/* $OpenBSD: e_aes_cbc_hmac_sha1.c,v 1.20 2024/01/08 09:31:09 tb Exp $ */ /* ==================================================================== * Copyright (c) 2011-2013 The OpenSSL Project. All rights reserved. * @@ -541,7 +541,7 @@ aesni_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) } } -static EVP_CIPHER aesni_128_cbc_hmac_sha1_cipher = { +static const EVP_CIPHER aesni_128_cbc_hmac_sha1_cipher = { #ifdef NID_aes_128_cbc_hmac_sha1 .nid = NID_aes_128_cbc_hmac_sha1, #else @@ -558,7 +558,7 @@ static EVP_CIPHER aesni_128_cbc_hmac_sha1_cipher = { .ctrl = aesni_cbc_hmac_sha1_ctrl }; -static EVP_CIPHER aesni_256_cbc_hmac_sha1_cipher = { +static const EVP_CIPHER aesni_256_cbc_hmac_sha1_cipher = { #ifdef NID_aes_256_cbc_hmac_sha1 .nid = NID_aes_256_cbc_hmac_sha1, #else -- 2.20.1