# HG changeset patch # User Anton Shestakov # Date 1469691285 -28800 # Node ID bdaff978c7904365d85c4fa76117f5e9d07db3c2 # Parent 50365a4968901026802246639be6937cb431d920 util.openssl: rename variable to not collide with other 'k's [luacheck] diff -r 50365a496890 -r bdaff978c790 util/openssl.lua --- 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