Commit Graph

69 Commits (51549fe050a1aec00284d1e2599c93010bc763c2)

Author SHA1 Message Date
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur a316833b30 mod_admin_telnet, mod_s2s: Fix reporting of certificate chain validation details 13 years ago
Kim Alvefur bb9aa809b1 mod_s2s: Improve policy check 13 years ago
Kim Alvefur 47ec51ca07 mod_s2s: Log certificate identity validation result 13 years ago
Kim Alvefur 0c6c0e9c29 mod_c2s, mod_s2s: Log a message that stream encryption has been enabled with some details 13 years ago
Kim Alvefur 74d66c5aef mod_s2s: Add missing global hook for read-timeout 13 years ago
Matthew Wild 34fd62b3ff mod_s2s/s2sout.lib: Remove unused variables and imports 13 years ago
Matthew Wild 5a6094750b mod_s2s/s2sout.lib: Remove reference to undefined global 13 years ago
Matthew Wild f538d14ed4 mod_s2s/s2sout.lib: Use new util.net.local_addresses() to fetch local interface addresses 13 years ago
Matthew Wild 28e1592c0c mod_s2s/s2sout.lib: Only attempt to create an IPv6 socket if LuaSocket supports IPv6 13 years ago
Kim Alvefur 4c9866805e mod_c2s, mod_s2s: Fire an event on read timeouts 13 years ago
Kim Alvefur a6d4b7ca4d mod_s2s: Set s2s_session.ip 13 years ago
Kim Alvefur 8d85647c37 mod_c2s, mod_c2s: Send a whitespace on read timeout, to prod TCP into detecting if the connection died 13 years ago
Matthew Wild 2e3f198799 mod_s2s: Remove unnecessary debug message 13 years ago
Matthew Wild bca009fef4 mod_s2s: Fix interaction between s2s_secure_auth and s2s_require_encryption, in particular ensure that when s2s_require_encryption is NOT set, do not require encryption on s2s_insecure_domains. 13 years ago
Florian Zeitz e53d5b4f79 util.rfc{3484,6724}: Update to RFC 6724 13 years ago
Matthew Wild c596e86388 mod_s2s: Ensure that to/from on stream headers are always correct, fixes #338 13 years ago
Matthew Wild de337196d4 mod_s2s: Obey tcp_keepalives option for s2s too, and make it individually configurable through s2s_tcp_keepalives (thanks yeled) 13 years ago
Matthew Wild c178786878 mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 13 years ago
Matthew Wild 4602591c38 mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 13 years ago
Kim Alvefur 001f4a7c75 mod_s2s: Add missing space 13 years ago
Kim Alvefur dc7aae81cd mod_s2s: Adjust priority of route/remote hooks to negative values (like most other internal hooks) 13 years ago
Kim Alvefur 28f67a8022 mod_s2s: Add COMPAT cahin verification code for older LuaSec versions 13 years ago
Matthew Wild 25bb94216d mod_s2s: Close incoming s2s with stream error when secure and we don't trust their certificate 13 years ago
Kim Alvefur cfbd9d02e2 mod_s2s: Prevent s2s to and from hosts we serve locally 13 years ago
Kim Alvefur fee52c7341 mod_s2s: Prevent traceback when replying to incoming connection to a host we don't serve 13 years ago
Kim Alvefur ae5806cd67 mod_s2s: Reset secure flag on new connection attempt 13 years ago
Kim Alvefur 5c16f18d72 mod_s2s: session.from_host does not allways exist on incoming connections, true and nil or "our hostname" does not evaluate to what we want here 13 years ago
Kim Alvefur 9c4985d9d8 mod_s2s: Keep the dns answer object around a while so plugins can look at it 13 years ago
Matthew Wild 68a7de369b mod_s2s: Fix variable usage in check_auth_policy (thanks Florob) 13 years ago
Matthew Wild 4ceaa9d2f2 mod_s2s: Remove unused variable 13 years ago
Matthew Wild b8efb428ea mod_s2s: Add controls for certificate validation via the s2s_secure_auth option. Plugins can now return false from handling s2s-check-certificate to prevent connection establishment (s2sin+s2sout) 13 years ago
Matthew Wild 339e74b1b9 s2smanager, mod_s2s, mod_dialback, mod_saslauth: Move s2smanager.make_authenticated() to mod_s2s, and plugins now signal authentication via the s2s-authenticated event 13 years ago
Kim Alvefur ee9ef878c4 mod_s2s, mod_saslauth, mod_compression: Refactor to have common code for opening streams 13 years ago
Matthew Wild 740e6e69a2 mod_s2s: Do not include xmlns:db declaration in stream header if mod_dialback is not loaded 13 years ago
Kim Alvefur 404b1966b1 mod_s2s: Make sure host variable is reachable 13 years ago
Matthew Wild a32c615bc8 mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure 13 years ago
Matthew Wild f936068a62 mod_s2s, mod_dialback: Rename s2s-authenticate-legacy event to s2sout-authenticate-legacy for clarity. Also, hello! 13 years ago
Kim Alvefur 255bd1e311 mod_s2s: Don't try to close sessions that were destroyed before timeout 13 years ago
Kim Alvefur 3e2a8fbe1c prosody, mod_c2s, mod_s2s: Move closing of c2s and s2s sessions to respective plugins 13 years ago
Matthew Wild b9ac1b8b07 mod_s2s: Remove connection from sessions table as soon as we learn it is disconnected. Fixes a connection/session leak. 13 years ago
Kim Alvefur b7219c57f4 mod_s2s: Detect TLS compression 13 years ago
Waqas Hussain d9d38ef125 mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item(). 14 years ago
Kim Alvefur ddd751aed9 mod_s2s: Check that an SRV reply isn't empty. 14 years ago
Kim Alvefur 9114e88ee0 mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table. 14 years ago
Matthew Wild be56306272 mod_s2s: Bump s2s_timeout to 90, to allow for the TCP timeout (in most cases) - this allows us to continue to try other targets 14 years ago
Matthew Wild 9931497619 mod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug' 14 years ago
Matthew Wild e89b006f03 Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages 14 years ago
Matthew Wild 0771b51658 mod_s2s: Adjust session:close() in line with mod_c2s's - fixes waiting for </stream:stream> if it has already been sent by the peer 14 years ago
Matthew Wild 9f24aa6cf8 mod_s2s/s2sout.lib: Use %s to insert strings into log messages instead of concatenation 14 years ago