Software /
code /
prosody
Changeset
7529:bdaff978c790
util.openssl: rename variable to not collide with other 'k's [luacheck]
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 28 Jul 2016 15:34:45 +0800 |
parents | 7528:50365a496890 |
children | 7530:f14094d10925 7531:2db68d1a6eeb |
files | util/openssl.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/util/openssl.lua Thu Jul 28 15:42:24 2016 +0800 +++ b/util/openssl.lua Thu Jul 28 15:34:45 2016 +0800 @@ -61,15 +61,15 @@ _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