From eb285749c840a7b607b6bb79d3fe7f4d150f95da Mon Sep 17 00:00:00 2001 From: Shubham Mittal Date: Mon, 6 Jan 2025 09:52:13 -0800 Subject: [PATCH] use const --- ssl/ssl_lib.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/ssl_lib.cc b/ssl/ssl_lib.cc index 4ebf95fe84..4108a2ff99 100644 --- a/ssl/ssl_lib.cc +++ b/ssl/ssl_lib.cc @@ -586,8 +586,8 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *method) { return nullptr; } - bool has_aes_hw = EVP_has_aes_hardware(); - char *cipher_rule; + const bool has_aes_hw = EVP_has_aes_hardware(); + const char *cipher_rule; if (has_aes_hw) { cipher_rule = TLS13_DEFAULT_CIPHER_LIST_AES_HW; } else {