diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-10-23 00:11:08 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-10-24 21:51:42 +0100 |
commit | ebd02c6026f976ab8ca03b6008ff866a86b6ad57 (patch) | |
tree | 595c1547f479ae6a456f0bafdaba2c8655214ec3 /src/nxt_cert.c | |
parent | 76cc071ab16cf342afb79b5e0976558215785f2f (diff) | |
download | unit-ebd02c6026f976ab8ca03b6008ff866a86b6ad57.tar.gz unit-ebd02c6026f976ab8ca03b6008ff866a86b6ad57.tar.bz2 |
Some more variable constification
Mostly more 'static nxt_str_t ...'s
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_cert.c')
-rw-r--r-- | src/nxt_cert.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nxt_cert.c b/src/nxt_cert.c index 4a1f1496..d7f57347 100644 --- a/src/nxt_cert.c +++ b/src/nxt_cert.c @@ -502,13 +502,13 @@ nxt_cert_details(nxt_mp_t *mp, nxt_cert_t *cert) nxt_conf_value_t *object, *chain, *element, *value; u_char buf[256]; - static nxt_str_t key_str = nxt_string("key"); - static nxt_str_t chain_str = nxt_string("chain"); - static nxt_str_t since_str = nxt_string("since"); - static nxt_str_t until_str = nxt_string("until"); - static nxt_str_t issuer_str = nxt_string("issuer"); - static nxt_str_t subject_str = nxt_string("subject"); - static nxt_str_t validity_str = nxt_string("validity"); + static const nxt_str_t key_str = nxt_string("key"); + static const nxt_str_t chain_str = nxt_string("chain"); + static const nxt_str_t since_str = nxt_string("since"); + static const nxt_str_t until_str = nxt_string("until"); + static const nxt_str_t issuer_str = nxt_string("issuer"); + static const nxt_str_t subject_str = nxt_string("subject"); + static const nxt_str_t validity_str = nxt_string("validity"); object = nxt_conf_create_object(mp, 2); if (nxt_slow_path(object == NULL)) { @@ -660,7 +660,7 @@ nxt_cert_name_details(nxt_mp_t *mp, X509 *x509, nxt_bool_t issuer) STACK_OF(GENERAL_NAME) *alt_names; u_char buf[256]; - static nxt_cert_nid_t nids[] = { + static const nxt_cert_nid_t nids[] = { { NID_commonName, nxt_string("common_name") }, { NID_countryName, nxt_string("country") }, { NID_stateOrProvinceName, nxt_string("state_or_province") }, @@ -669,7 +669,7 @@ nxt_cert_name_details(nxt_mp_t *mp, X509 *x509, nxt_bool_t issuer) { NID_organizationalUnitName, nxt_string("department") }, }; - static nxt_str_t alt_names_str = nxt_string("alt_names"); + static const nxt_str_t alt_names_str = nxt_string("alt_names"); count = 0; |