Mercurial > prosody-modules
comparison mod_auth_ccert/mod_auth_ccert.lua @ 1092:f46307e8e2f8
mod_auth_ccert: Use value from ipairs
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 30 Jun 2013 00:18:55 +0200 |
| parents | dee31eeae7ae |
| children | 853a382c9bd6 |
comparison
equal
deleted
inserted
replaced
| 1091:79ef0427765f | 1092:f46307e8e2f8 |
|---|---|
| 79 | 79 |
| 80 local chain_valid, chain_errors = sock:getpeerverification(); | 80 local chain_valid, chain_errors = sock:getpeerverification(); |
| 81 if not chain_valid then | 81 if not chain_valid then |
| 82 (session.log or log)("warn", "Invalid client certificate chain"); | 82 (session.log or log)("warn", "Invalid client certificate chain"); |
| 83 for i, error in ipairs(chain_errors) do | 83 for i, error in ipairs(chain_errors) do |
| 84 (session.log or log)("warn", "%d: %s", i, table.concat(chain_errors[i], ", ")); | 84 (session.log or log)("warn", "%d: %s", i, table.concat(error, ", ")); |
| 85 end | 85 end |
| 86 return nil, false; | 86 return nil, false; |
| 87 end | 87 end |
| 88 | 88 |
| 89 return find_username(cert, authz, session); | 89 return find_username(cert, authz, session); |
