diff options
author | Anton Shestakov <av6@dwimlabs.net> | 2016-07-28 15:34:45 +0800 |
---|---|---|
committer | Anton Shestakov <av6@dwimlabs.net> | 2016-07-28 15:34:45 +0800 |
commit | 81e867eb41ec5131cd0725a17f2b4faa8dfe33b2 (patch) | |
tree | 48e13dc0072f4ed70b2bc5ae60c245d494d7ab4c /util/openssl.lua | |
parent | ed9fdb01d11ef19543dfceb19afd249c09ec28cf (diff) | |
download | prosody-81e867eb41ec5131cd0725a17f2b4faa8dfe33b2.tar.gz prosody-81e867eb41ec5131cd0725a17f2b4faa8dfe33b2.zip |
util.openssl: rename variable to not collide with other 'k's [luacheck]
Diffstat (limited to 'util/openssl.lua')
-rw-r--r-- | util/openssl.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/openssl.lua b/util/openssl.lua index abd90a84..703c6d15 100644 --- a/util/openssl.lua +++ b/util/openssl.lua @@ -61,15 +61,15 @@ local DN_order = { _M._DN_order = DN_order; function ssl_config:serialize() local s = ""; - for k, t in pairs(self) do - s = s .. ("[%s]\n"):format(k); - if k == "subject_alternative_name" then + for section, t in pairs(self) do + s = s .. ("[%s]\n"):format(section); + if section == "subject_alternative_name" then for san, n in pairs(t) do for i = 1, #n do s = s .. s_format("%s.%d = %s\n", san, i -1, n[i]); end end - elseif k == "distinguished_name" then + elseif section == "distinguished_name" then for _, k in ipairs(t[1] and t or DN_order) do local v = t[k]; if v then |