Software / code / prosody
Comparison
plugins/mod_admin_telnet.lua @ 5769:f6ea5b3739c9
mod_admin_telnet, mod_s2s: Fix reporting of certificate chain validation details
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 06 Aug 2013 14:32:31 +0200 |
| parent | 5672:0c68cea74d5d |
| child | 5770:7722372aa087 |
| child | 6016:eb05360e8525 |
comparison
equal
deleted
inserted
replaced
| 5768:c892709f035d | 5769:f6ea5b3739c9 |
|---|---|
| 671 | 671 |
| 672 -- As much as it pains me to use the 0-based depths that OpenSSL does, | 672 -- As much as it pains me to use the 0-based depths that OpenSSL does, |
| 673 -- I think there's going to be more confusion among operators if we | 673 -- I think there's going to be more confusion among operators if we |
| 674 -- break from that. | 674 -- break from that. |
| 675 local function print_errors(print, errors) | 675 local function print_errors(print, errors) |
| 676 for depth, t in ipairs(errors) do | 676 for depth, t in pairs(errors) do |
| 677 print( | 677 print( |
| 678 (" %d: %s"):format( | 678 (" %d: %s"):format( |
| 679 depth-1, | 679 depth-1, |
| 680 table.concat(t, "\n| ") | 680 table.concat(t, "\n| ") |
| 681 ) | 681 ) |