summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-01-08 09:31:09 +0000
committertb <>2024-01-08 09:31:09 +0000
commitb5f80d33f4a3127ef91b7e10df8afd95f23e5f26 (patch)
treed64a87c9f95150c3d46ac08c6aa3dd6c43e4221a
parentd3818c1a3eba6c43c06f96e0e13bebe51e14bb5a (diff)
downloadopenbsd-b5f80d33f4a3127ef91b7e10df8afd95f23e5f26.tar.gz
openbsd-b5f80d33f4a3127ef91b7e10df8afd95f23e5f26.tar.bz2
openbsd-b5f80d33f4a3127ef91b7e10df8afd95f23e5f26.zip
const correct aesni_{128,256}_cbc_hmac_sha1_cipher
-rw-r--r--src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c b/src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c
index 09a73da748..4241436451 100644
--- a/src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c
+++ b/src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: e_aes_cbc_hmac_sha1.c,v 1.19 2023/07/07 19:37:53 beck Exp $ */ 1/* $OpenBSD: e_aes_cbc_hmac_sha1.c,v 1.20 2024/01/08 09:31:09 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2011-2013 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2011-2013 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -541,7 +541,7 @@ aesni_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr)
541 } 541 }
542} 542}
543 543
544static EVP_CIPHER aesni_128_cbc_hmac_sha1_cipher = { 544static const EVP_CIPHER aesni_128_cbc_hmac_sha1_cipher = {
545#ifdef NID_aes_128_cbc_hmac_sha1 545#ifdef NID_aes_128_cbc_hmac_sha1
546 .nid = NID_aes_128_cbc_hmac_sha1, 546 .nid = NID_aes_128_cbc_hmac_sha1,
547#else 547#else
@@ -558,7 +558,7 @@ static EVP_CIPHER aesni_128_cbc_hmac_sha1_cipher = {
558 .ctrl = aesni_cbc_hmac_sha1_ctrl 558 .ctrl = aesni_cbc_hmac_sha1_ctrl
559}; 559};
560 560
561static EVP_CIPHER aesni_256_cbc_hmac_sha1_cipher = { 561static const EVP_CIPHER aesni_256_cbc_hmac_sha1_cipher = {
562#ifdef NID_aes_256_cbc_hmac_sha1 562#ifdef NID_aes_256_cbc_hmac_sha1
563 .nid = NID_aes_256_cbc_hmac_sha1, 563 .nid = NID_aes_256_cbc_hmac_sha1,
564#else 564#else