Software /
code /
prosody
Comparison
util/openssl.lua @ 8382:e5d00bf4a4d5
util: Various minor changes to please [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Nov 2017 05:42:32 +0100 |
parent | 7529:bdaff978c790 |
child | 12784:3b9de8dd71a3 |
comparison
equal
deleted
inserted
replaced
8381:7f6184474149 | 8382:e5d00bf4a4d5 |
---|---|
112 function ssl_config:add_xmppAddr(host) | 112 function ssl_config:add_xmppAddr(host) |
113 t_insert(self.subject_alternative_name.otherName, | 113 t_insert(self.subject_alternative_name.otherName, |
114 s_format("%s;%s", oid_xmppaddr, utf8string(host))); | 114 s_format("%s;%s", oid_xmppaddr, utf8string(host))); |
115 end | 115 end |
116 | 116 |
117 function ssl_config:from_prosody(hosts, config, certhosts) | 117 function ssl_config:from_prosody(hosts, config, certhosts) -- luacheck: ignore 431/config |
118 -- TODO Decide if this should go elsewhere | 118 -- TODO Decide if this should go elsewhere |
119 local found_matching_hosts = false; | 119 local found_matching_hosts = false; |
120 for i = 1, #certhosts do | 120 for i = 1, #certhosts do |
121 local certhost = certhosts[i]; | 121 local certhost = certhosts[i]; |
122 for name in pairs(hosts) do | 122 for name in pairs(hosts) do |