Mercurial > prosody-hg
comparison plugins/mod_s2s_auth_certs.lua @ 10411:db2a06b9ff98
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 16 Nov 2019 16:52:31 +0100 |
| parents | 77f900bbbf25 |
| children | 6c3fccb75b38 |
comparison
equal
deleted
inserted
replaced
| 10410:659b577f280c | 10411:db2a06b9ff98 |
|---|---|
| 15 end | 15 end |
| 16 | 16 |
| 17 local chain_valid, errors; | 17 local chain_valid, errors; |
| 18 if conn.getpeerverification then | 18 if conn.getpeerverification then |
| 19 chain_valid, errors = conn:getpeerverification(); | 19 chain_valid, errors = conn:getpeerverification(); |
| 20 elseif conn.getpeerchainvalid then -- COMPAT mw/luasec-hg | |
| 21 chain_valid, errors = conn:getpeerchainvalid(); | |
| 22 errors = (not chain_valid) and { { errors } } or nil; | |
| 23 else | 20 else |
| 24 chain_valid, errors = false, { { "Chain verification not supported by this version of LuaSec" } }; | 21 chain_valid, errors = false, { { "Chain verification not supported by this version of LuaSec" } }; |
| 25 end | 22 end |
| 26 -- Is there any interest in printing out all/the number of errors here? | 23 -- Is there any interest in printing out all/the number of errors here? |
| 27 if not chain_valid then | 24 if not chain_valid then |
