constification of global static data

This commit is contained in:
Pauli 2025-05-13 13:22:06 +10:00
parent 1a1c10f5d7
commit 086e36e0d0
4 changed files with 6 additions and 6 deletions

View File

@ -912,7 +912,7 @@ static int aesni_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg,
}
}
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_aes_128_cbc_hmac_sha1,
# else
@ -932,7 +932,7 @@ static EVP_CIPHER aesni_128_cbc_hmac_sha1_cipher = {
NULL
};
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_aes_256_cbc_hmac_sha1,
# else

View File

@ -889,7 +889,7 @@ static int aesni_cbc_hmac_sha256_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg,
}
}
static EVP_CIPHER aesni_128_cbc_hmac_sha256_cipher = {
static const EVP_CIPHER aesni_128_cbc_hmac_sha256_cipher = {
# ifdef NID_aes_128_cbc_hmac_sha256
NID_aes_128_cbc_hmac_sha256,
# else
@ -909,7 +909,7 @@ static EVP_CIPHER aesni_128_cbc_hmac_sha256_cipher = {
NULL
};
static EVP_CIPHER aesni_256_cbc_hmac_sha256_cipher = {
static const EVP_CIPHER aesni_256_cbc_hmac_sha256_cipher = {
# ifdef NID_aes_256_cbc_hmac_sha256
NID_aes_256_cbc_hmac_sha256,
# else

View File

@ -607,7 +607,7 @@ static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg,
}
}
static EVP_CIPHER chacha20_poly1305 = {
static const EVP_CIPHER chacha20_poly1305 = {
NID_chacha20_poly1305,
1, /* block_size */
CHACHA_KEY_SIZE, /* key_len */

View File

@ -246,7 +246,7 @@ static int rc4_hmac_md5_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg,
}
}
static EVP_CIPHER r4_hmac_md5_cipher = {
static const EVP_CIPHER r4_hmac_md5_cipher = {
# ifdef NID_rc4_hmac_md5
NID_rc4_hmac_md5,
# else