Software / code / prosody
Comparison
plugins/mod_tls.lua @ 13806:a91440ddf9a2
Merge 13.0->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 01 Apr 2025 21:25:31 +0200 |
| parent | 13805:eef9a2a53dcb |
comparison
equal
deleted
inserted
replaced
| 13803:3627980e7df6 | 13806:a91440ddf9a2 |
|---|---|
| 61 ssl_ctx_c2s, err_c2s, ssl_cfg_c2s = create_context(host.host, "server", host_c2s, host_ssl, global_c2s); -- for incoming client connections | 61 ssl_ctx_c2s, err_c2s, ssl_cfg_c2s = create_context(host.host, "server", host_c2s, host_ssl, global_c2s); -- for incoming client connections |
| 62 if not ssl_ctx_c2s then module:log("error", "Error creating context for c2s: %s", err_c2s); end | 62 if not ssl_ctx_c2s then module:log("error", "Error creating context for c2s: %s", err_c2s); end |
| 63 | 63 |
| 64 module:log("debug", "Creating context for s2sout"); | 64 module:log("debug", "Creating context for s2sout"); |
| 65 -- for outgoing server connections | 65 -- for outgoing server connections |
| 66 ssl_ctx_s2sout, err_s2sout, ssl_cfg_s2sout = create_context(host.host, "client", host_s2s, host_ssl, global_s2s, xmpp_alpn); | 66 ssl_ctx_s2sout, err_s2sout, ssl_cfg_s2sout = create_context(host.host, "client", host_s2s, host_ssl, global_s2s, xmpp_alpn, |
| 67 custom_cert_verification); | |
| 67 if not ssl_ctx_s2sout then module:log("error", "Error creating contexts for s2sout: %s", err_s2sout); end | 68 if not ssl_ctx_s2sout then module:log("error", "Error creating contexts for s2sout: %s", err_s2sout); end |
| 68 | 69 |
| 69 module:log("debug", "Creating context for s2sin"); | 70 module:log("debug", "Creating context for s2sin"); |
| 70 -- for incoming server connections | 71 -- for incoming server connections |
| 71 ssl_ctx_s2sin, err_s2sin, ssl_cfg_s2sin = create_context(host.host, "server", | 72 ssl_ctx_s2sin, err_s2sin, ssl_cfg_s2sin = create_context(host.host, "server", |