prosody.git
9 years agomod_s2s_auth_certs: Warn about lack of certificate (Mostly jabberd14 not sending...
Kim Alvefur [Fri, 29 Aug 2014 00:24:49 +0000 (02:24 +0200)]
mod_s2s_auth_certs: Warn about lack of certificate (Mostly jabberd14 not sending a client certificate)

9 years agoMerge 0.9->0.10
Matthew Wild [Thu, 28 Aug 2014 11:23:58 +0000 (12:23 +0100)]
Merge 0.9->0.10

9 years agoTagging 0.9.5
Matthew Wild [Thu, 28 Aug 2014 11:22:39 +0000 (12:22 +0100)]
Tagging 0.9.5

9 years agoMerge 0.9->0.10
Matthew Wild [Thu, 28 Aug 2014 08:23:24 +0000 (09:23 +0100)]
Merge 0.9->0.10

9 years agoutil.filters: Ignore filters being added twice (fixes issues on removal)
Matthew Wild [Thu, 28 Aug 2014 08:20:33 +0000 (09:20 +0100)]
util.filters: Ignore filters being added twice (fixes issues on removal)

9 years agomod_privacy: Fix to correctly sort privacy list rules by order (thanks Flow)
Matthew Wild [Thu, 28 Aug 2014 08:17:07 +0000 (09:17 +0100)]
mod_privacy: Fix to correctly sort privacy list rules by order (thanks Flow)

9 years agoutil.xmppstream: Don't include empty stream ID in stream header (got here from mod_c2s)
Kim Alvefur [Wed, 27 Aug 2014 11:00:04 +0000 (13:00 +0200)]
util.xmppstream: Don't include empty stream ID in stream header (got here from mod_c2s)

9 years agomod_c2s, mod_s2s: Log received invalid stream headers
Matthew Wild [Sat, 23 Aug 2014 08:29:17 +0000 (09:29 +0100)]
mod_c2s, mod_s2s: Log received invalid stream headers

9 years agoutil.xmppstream: When error is 'no-stream', pass the received tagname to the error...
Matthew Wild [Sat, 23 Aug 2014 08:22:05 +0000 (09:22 +0100)]
util.xmppstream: When error is 'no-stream', pass the received tagname to the error handler

9 years agomod_s2s: Reset stream ID when resetting stream [compliance]
Kim Alvefur [Wed, 27 Aug 2014 11:20:08 +0000 (13:20 +0200)]
mod_s2s: Reset stream ID when resetting stream [compliance]

9 years agomodulemanager: Reduce warning to debug level message about modules already being...
Kim Alvefur [Wed, 27 Aug 2014 08:46:22 +0000 (10:46 +0200)]
modulemanager: Reduce warning to debug level message about modules already being loaded, it's probably just module:depends()

9 years agonet.http.server: Comment out a log message
Kim Alvefur [Wed, 27 Aug 2014 08:44:45 +0000 (10:44 +0200)]
net.http.server: Comment out a log message

9 years agomod_s2s: Mark stream as opened earlier for outgoing connections, fixes double stream...
Kim Alvefur [Tue, 26 Aug 2014 19:50:08 +0000 (21:50 +0200)]
mod_s2s: Mark stream as opened earlier for outgoing connections, fixes double stream headers on policy failures

9 years agomod_compression: Handle compression setup errors by logging a warning about it (fixes...
Kim Alvefur [Tue, 26 Aug 2014 10:19:27 +0000 (12:19 +0200)]
mod_compression: Handle compression setup errors by logging a warning about it (fixes #408)

9 years agomod_posix: Make sure that 'pidfile' is a string
Kim Alvefur [Tue, 26 Aug 2014 10:02:41 +0000 (12:02 +0200)]
mod_posix: Make sure that 'pidfile' is a string

9 years agoprosodyctl: Verify that 'pidfile' is a string, show friendly error otherwise
Kim Alvefur [Tue, 26 Aug 2014 10:00:51 +0000 (12:00 +0200)]
prosodyctl: Verify that 'pidfile' is a string, show friendly error otherwise

9 years agomod_private: Fix traceback due to missing table index
Kim Alvefur [Wed, 13 Aug 2014 17:19:34 +0000 (19:19 +0200)]
mod_private: Fix traceback due to missing table index

9 years agomod_blocklist: Use full word as variable name, we can afford that
Kim Alvefur [Tue, 12 Aug 2014 13:42:20 +0000 (15:42 +0200)]
mod_blocklist: Use full word as variable name, we can afford that

9 years agomod_blocklist: Correct comment
Kim Alvefur [Tue, 12 Aug 2014 13:40:00 +0000 (15:40 +0200)]
mod_blocklist: Correct comment

9 years agomod_blocklist: Fix any unblock emptying the blocklist
Kim Alvefur [Tue, 12 Aug 2014 13:38:48 +0000 (15:38 +0200)]
mod_blocklist: Fix any unblock emptying the blocklist

9 years agomod_privacy: Remove, leave a log message about being replaced by mod_blocklist and...
Kim Alvefur [Sun, 10 Aug 2014 08:29:38 +0000 (10:29 +0200)]
mod_privacy: Remove, leave a log message about being replaced by mod_blocklist and load that instead

9 years agoprosody.cfg.lua.dist: Replace mod_privacy with mod_blocklist in the default config
Kim Alvefur [Sun, 10 Aug 2014 08:27:20 +0000 (10:27 +0200)]
prosody.cfg.lua.dist: Replace mod_privacy with mod_blocklist in the default config

9 years agomod_blocklist: XEP-0191 implementation written for speed and independence from mod_pr...
Kim Alvefur [Sun, 10 Aug 2014 08:27:00 +0000 (10:27 +0200)]
mod_blocklist: XEP-0191 implementation written for speed and independence from mod_privacy

9 years agomod_private: Cleanup and more tailcalls
Kim Alvefur [Sat, 9 Aug 2014 19:48:11 +0000 (21:48 +0200)]
mod_private: Cleanup and more tailcalls

9 years agoutil.jid: Optimize bare
Kim Alvefur [Thu, 7 Aug 2014 15:43:28 +0000 (17:43 +0200)]
util.jid: Optimize bare

9 years agoutil.jid: Use existing join function in jid.prep
Kim Alvefur [Thu, 7 Aug 2014 15:35:11 +0000 (17:35 +0200)]
util.jid: Use existing join function in jid.prep

9 years agoutil.jid: Return early in join on invalid jids
Kim Alvefur [Thu, 7 Aug 2014 15:20:51 +0000 (17:20 +0200)]
util.jid: Return early in join on invalid jids

9 years agoprosodyctl: Remove nonsensical warning
Matthew Wild [Thu, 31 Jul 2014 05:59:12 +0000 (06:59 +0100)]
prosodyctl: Remove nonsensical warning

9 years agoprosodyctl: Improve JID splitting and normalization for adduser/passwd/deluser
Matthew Wild [Thu, 31 Jul 2014 05:58:15 +0000 (06:58 +0100)]
prosodyctl: Improve JID splitting and normalization for adduser/passwd/deluser

9 years agoconfigmanager: nameprep VirtualHost and Component names
Matthew Wild [Thu, 31 Jul 2014 05:56:21 +0000 (06:56 +0100)]
configmanager: nameprep VirtualHost and Component names

9 years agomod_s2s: Remove unused locals
Kim Alvefur [Fri, 25 Jul 2014 19:12:21 +0000 (21:12 +0200)]
mod_s2s: Remove unused locals

9 years agoMerge 0.9->0.10
Matthew Wild [Thu, 31 Jul 2014 06:11:54 +0000 (07:11 +0100)]
Merge 0.9->0.10

9 years agomod_s2s_auth_certs: Pick a logging function once and stick with it
Kim Alvefur [Fri, 25 Jul 2014 19:03:16 +0000 (21:03 +0200)]
mod_s2s_auth_certs: Pick a logging function once and stick with it

9 years agomod_s2s_auth_certs: Split PKIX based certificate checking from mod_s2s into new plugin
Kim Alvefur [Fri, 25 Jul 2014 18:41:54 +0000 (20:41 +0200)]
mod_s2s_auth_certs: Split PKIX based certificate checking from mod_s2s into new plugin

9 years agoMerge 0.9->0.10
Matthew Wild [Fri, 25 Jul 2014 12:54:27 +0000 (13:54 +0100)]
Merge 0.9->0.10

9 years agonet.server_select/event: Switch sender mode to *a when reading, to make sure we get...
Matthew Wild [Fri, 25 Jul 2014 12:53:39 +0000 (13:53 +0100)]
net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data

9 years agoMerge 0.9->0.10
Matthew Wild [Fri, 25 Jul 2014 12:01:57 +0000 (13:01 +0100)]
Merge 0.9->0.10

9 years agomod_admin_telnet: Fix dns:(add,set)nameservers()
Kim Alvefur [Fri, 25 Jul 2014 11:59:17 +0000 (13:59 +0200)]
mod_admin_telnet: Fix dns:(add,set)nameservers()

9 years agonet.dns: Remove unused obsolete code
Matthew Wild [Fri, 25 Jul 2014 11:54:31 +0000 (12:54 +0100)]
net.dns: Remove unused obsolete code

9 years agonet.dns: Ensure all pending requests get notified of a timeout when looking up a...
Matthew Wild [Fri, 25 Jul 2014 11:08:07 +0000 (12:08 +0100)]
net.dns: Ensure all pending requests get notified of a timeout when looking up a record (fix for d122420542fb)

9 years agomod_dialback: Respect dwd config option
Kim Alvefur [Wed, 9 Jul 2014 00:04:16 +0000 (02:04 +0200)]
mod_dialback: Respect dwd config option

9 years agomod_dialback.lua: Only check certificates on secure connections
Kim Alvefur [Fri, 4 Jul 2014 21:04:56 +0000 (23:04 +0200)]
mod_dialback.lua: Only check certificates on secure connections

9 years agomod_lastactivity, mod_legacyauth, mod_presence, mod_saslauth, mod_tls: Use the newer...
Kim Alvefur [Fri, 4 Jul 2014 20:52:34 +0000 (22:52 +0200)]
mod_lastactivity, mod_legacyauth, mod_presence, mod_saslauth, mod_tls: Use the newer stanza:get_child APIs and optimize away some table lookups

9 years agomod_dialback: Short-circuit dialback auth if certificate is considered valid
Kim Alvefur [Fri, 4 Jul 2014 19:48:25 +0000 (21:48 +0200)]
mod_dialback: Short-circuit dialback auth if certificate is considered valid

9 years agomod_register: get_child_text! (thanks Lloyd)
Kim Alvefur [Thu, 3 Jul 2014 15:53:24 +0000 (17:53 +0200)]
mod_register: get_child_text! (thanks Lloyd)

9 years agomod_dialback: Keep the same dialback secret across module reloads
Kim Alvefur [Thu, 3 Jul 2014 13:38:53 +0000 (15:38 +0200)]
mod_dialback: Keep the same dialback secret across module reloads

10 years agonet.dns: Fix duplicated cache insertions by limiting outstanding queries per name...
Kim Alvefur [Mon, 30 Jun 2014 10:45:53 +0000 (12:45 +0200)]
net.dns: Fix duplicated cache insertions by limiting outstanding queries per name to one

10 years agonet.adns: Add missing local declaration
Kim Alvefur [Wed, 25 Jun 2014 13:33:49 +0000 (15:33 +0200)]
net.adns: Add missing local declaration

10 years agotools/ejabberd2prosody.lua: Fix JID building, node-less jids became @hostname in...
Kim Alvefur [Tue, 17 Jun 2014 09:01:51 +0000 (11:01 +0200)]
tools/ejabberd2prosody.lua: Fix JID building, node-less jids became @hostname in some cases

10 years agohostmanager, mod_dialback: Move generation of dialback secret out of core
Kim Alvefur [Thu, 22 May 2014 13:21:22 +0000 (15:21 +0200)]
hostmanager, mod_dialback: Move generation of dialback secret out of core

9 years agoMerge 0.9->0.10
Kim Alvefur [Fri, 4 Jul 2014 13:54:37 +0000 (15:54 +0200)]
Merge 0.9->0.10

9 years agomod_tls: Simplify and use new ssl config merging in certmanager
Kim Alvefur [Thu, 3 Jul 2014 13:35:45 +0000 (15:35 +0200)]
mod_tls: Simplify and use new ssl config merging in certmanager

9 years agocore.portmanager: Simplify and take advantage of new ssl config merging in certmanager
Kim Alvefur [Thu, 3 Jul 2014 13:33:11 +0000 (15:33 +0200)]
core.portmanager: Simplify and take advantage of new ssl config merging in certmanager

9 years agocore.certmanager: Make create_context() support an arbitrary number of option sets...
Kim Alvefur [Thu, 3 Jul 2014 13:32:26 +0000 (15:32 +0200)]
core.certmanager: Make create_context() support an arbitrary number of option sets, merging all

9 years agocore.certmanager: Use util.sslconfig
Kim Alvefur [Thu, 3 Jul 2014 13:31:12 +0000 (15:31 +0200)]
core.certmanager: Use util.sslconfig

9 years agoutil.sslconfig: Add lib to deal with LuaSec SSL context configs
Kim Alvefur [Thu, 3 Jul 2014 13:27:49 +0000 (15:27 +0200)]
util.sslconfig: Add lib to deal with LuaSec SSL context configs

9 years agomod_presence: Move presence/initial event to correct place so it actually fires
Kim Alvefur [Thu, 3 Jul 2014 09:54:50 +0000 (11:54 +0200)]
mod_presence: Move presence/initial event to correct place so it actually fires

10 years agoMerge 0.9->0.10
Kim Alvefur [Mon, 30 Jun 2014 11:11:01 +0000 (13:11 +0200)]
Merge 0.9->0.10

10 years agoMerge 0.9->0.10
Kim Alvefur [Sat, 21 Jun 2014 13:05:21 +0000 (15:05 +0200)]
Merge 0.9->0.10

10 years agomod_storage_{none,internal,sql}: Return error for unsupported (everything but keyval...
Kim Alvefur [Fri, 20 Jun 2014 14:22:23 +0000 (16:22 +0200)]
mod_storage_{none,internal,sql}: Return error for unsupported (everything but keyval) store types

10 years agomod_storage_sql2: Don't ignore failure in keyval_store:get() (thanks daurnimator)
Kim Alvefur [Fri, 20 Jun 2014 14:16:33 +0000 (16:16 +0200)]
mod_storage_sql2: Don't ignore failure in keyval_store:get() (thanks daurnimator)

10 years agomod_presence: Fire a presence/initial event on initial presence
Kim Alvefur [Fri, 20 Jun 2014 14:10:04 +0000 (16:10 +0200)]
mod_presence: Fire a presence/initial event on initial presence

10 years agomod_admin_telnet: Add command to list MUC rooms
Matthew Wild [Wed, 28 May 2014 11:43:34 +0000 (12:43 +0100)]
mod_admin_telnet: Add command to list MUC rooms

10 years agomod_s2s: Fire a 's2s-created' event when new s2s connections are initialized
Kim Alvefur [Sat, 24 May 2014 09:17:26 +0000 (11:17 +0200)]
mod_s2s: Fire a 's2s-created' event when new s2s connections are initialized

10 years agomod_s2s: Remove redundant setting of session.direction
Kim Alvefur [Thu, 22 May 2014 20:49:43 +0000 (22:49 +0200)]
mod_s2s: Remove redundant setting of session.direction

10 years agomod_s2s: Move filter initialization to common place
Kim Alvefur [Thu, 22 May 2014 20:48:06 +0000 (22:48 +0200)]
mod_s2s: Move filter initialization to common place

10 years agomod_s2s: Decide on log function once
Kim Alvefur [Thu, 22 May 2014 20:45:58 +0000 (22:45 +0200)]
mod_s2s: Decide on log function once

10 years agomod_admin_telnet: Remove dead code
Kim Alvefur [Sun, 11 May 2014 23:16:17 +0000 (01:16 +0200)]
mod_admin_telnet: Remove dead code

10 years agomod_admin_telnet: Show which hosts are components and what type of component in host...
Kim Alvefur [Sun, 11 May 2014 23:07:40 +0000 (01:07 +0200)]
mod_admin_telnet: Show which hosts are components and what type of component in host:list()

10 years agomod_admin_telnet: Add c2s:show_tls(), behaves like s2s:show_tls()
Kim Alvefur [Sun, 11 May 2014 17:13:36 +0000 (19:13 +0200)]
mod_admin_telnet: Add c2s:show_tls(), behaves like s2s:show_tls()

10 years agomod_admin_telnet: Move generation of log tag for s2s:show() (adds it to c2s:show...
Kim Alvefur [Sun, 11 May 2014 17:12:03 +0000 (19:12 +0200)]
mod_admin_telnet: Move generation of log tag for s2s:show() (adds it to c2s:show() too)

10 years agomod_admin_telnet: Add s2s:show_tls() for showing ciphers used on s2s connections
Kim Alvefur [Sun, 11 May 2014 16:51:08 +0000 (18:51 +0200)]
mod_admin_telnet: Add s2s:show_tls() for showing ciphers used on s2s connections

10 years agomod_admin_telnet: Move extraction of c2s presence info into session_flags()
Kim Alvefur [Sun, 11 May 2014 17:03:23 +0000 (19:03 +0200)]
mod_admin_telnet: Move extraction of c2s presence info into session_flags()

10 years agomod_admin_telnet: Split (secure) into (authenticated) + (secure)
Kim Alvefur [Sun, 11 May 2014 16:28:00 +0000 (18:28 +0200)]
mod_admin_telnet: Split (secure) into (authenticated) + (secure)

10 years agomod_admin_telnet: Send NUL byte as keepalive on read timeouts
Kim Alvefur [Sun, 11 May 2014 16:22:17 +0000 (18:22 +0200)]
mod_admin_telnet: Send NUL byte as keepalive on read timeouts

10 years agomod_c2s: Fix traceback if c2s stream sent to component
Kim Alvefur [Sat, 10 May 2014 00:12:51 +0000 (02:12 +0200)]
mod_c2s: Fix traceback if c2s stream sent to component

10 years agoMerge 0.9->0.10
Kim Alvefur [Fri, 9 May 2014 21:28:09 +0000 (23:28 +0200)]
Merge 0.9->0.10

10 years agoconfigmanager: Delay importing LuaFileSystem until needed by an Include line
Kim Alvefur [Fri, 9 May 2014 17:59:49 +0000 (19:59 +0200)]
configmanager: Delay importing LuaFileSystem until needed by an Include line

10 years agocore.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from...
Kim Alvefur [Fri, 9 May 2014 17:35:29 +0000 (19:35 +0200)]
core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths

10 years agocore.configmanager: Move path utility functions into util.paths
Kim Alvefur [Fri, 9 May 2014 17:34:35 +0000 (19:34 +0200)]
core.configmanager: Move path utility functions into util.paths

10 years agoprosodyctl: Check that there is at least one enabled VirtualHost (or Component) defined
Kim Alvefur [Fri, 2 May 2014 06:56:03 +0000 (08:56 +0200)]
prosodyctl: Check that there is at least one enabled VirtualHost (or Component) defined

10 years agoprosodyctl: Use correct variable in check certs
Kim Alvefur [Fri, 2 May 2014 06:27:29 +0000 (08:27 +0200)]
prosodyctl: Use correct variable in check certs

10 years agoprosodyctl: Check for deprecated config options
Kim Alvefur [Fri, 2 May 2014 06:21:56 +0000 (08:21 +0200)]
prosodyctl: Check for deprecated config options

10 years agoprosodyctl: Add check that points out any disabled hosts
Kim Alvefur [Fri, 2 May 2014 06:16:26 +0000 (08:16 +0200)]
prosodyctl: Add check that points out any disabled hosts

10 years agoprosodyctl: Only perform checks on enabled hosts
Kim Alvefur [Fri, 2 May 2014 06:11:11 +0000 (08:11 +0200)]
prosodyctl: Only perform checks on enabled hosts

10 years agoMerge 0.9->0.10
Kim Alvefur [Sat, 26 Apr 2014 23:02:20 +0000 (01:02 +0200)]
Merge 0.9->0.10

10 years agoutil.x509: Remove unused imports
Kim Alvefur [Fri, 25 Apr 2014 00:47:09 +0000 (02:47 +0200)]
util.x509: Remove unused imports

10 years agoutil.pposix: Fix error reporting from really old Linux fallocate() that did not use...
Kim Alvefur [Fri, 25 Apr 2014 00:41:55 +0000 (02:41 +0200)]
util.pposix: Fix error reporting from really old Linux fallocate() that did not use errno for some reason (thanks pro)

10 years agoutil.pposix: Fix error reporting from posix_fallocate, it doesn't use errno (thanks...
Kim Alvefur [Thu, 24 Apr 2014 22:36:01 +0000 (00:36 +0200)]
util.pposix: Fix error reporting from posix_fallocate, it doesn't use errno (thanks pro)

10 years agoutil.x509: And functions for converting between DER and PEM
Kim Alvefur [Thu, 24 Apr 2014 21:38:47 +0000 (23:38 +0200)]
util.x509: And functions for converting between DER and PEM

10 years agoMerge 0.9->0.10
Kim Alvefur [Tue, 22 Apr 2014 22:22:36 +0000 (00:22 +0200)]
Merge 0.9->0.10

10 years agoutil.dataforms: Add support for XEP-0221: Data Forms Media Element
Kim Alvefur [Tue, 22 Apr 2014 21:36:26 +0000 (23:36 +0200)]
util.dataforms: Add support for XEP-0221: Data Forms Media Element

10 years agotools/jabberd14sql2prosody: Fix package.path (thanks daurnimator)
Kim Alvefur [Tue, 22 Apr 2014 21:14:53 +0000 (23:14 +0200)]
tools/jabberd14sql2prosody: Fix package.path (thanks daurnimator)

10 years agomod_s2s: Follow XMPP Core on when a stream is to be considered ready
Kim Alvefur [Tue, 22 Apr 2014 19:56:06 +0000 (21:56 +0200)]
mod_s2s: Follow XMPP Core on when a stream is to be considered ready

10 years agocertmanager: Move ssl.protocol handling to after ssl.options is a table (thanks Ralph)
Kim Alvefur [Mon, 21 Apr 2014 00:43:09 +0000 (02:43 +0200)]
certmanager: Move ssl.protocol handling to after ssl.options is a table (thanks Ralph)

10 years agocertmanager: Fix traceback if no global 'ssl' section set (thanks albert)
Kim Alvefur [Sun, 20 Apr 2014 19:25:26 +0000 (21:25 +0200)]
certmanager: Fix traceback if no global 'ssl' section set (thanks albert)

10 years agomod_http: Update to disable peer verification with the new certmanager
Kim Alvefur [Sat, 19 Apr 2014 19:59:53 +0000 (21:59 +0200)]
mod_http: Update to disable peer verification with the new certmanager

10 years agomod_s2s: Replace open_stream() with function that only adds s2s/dialback attributes...
Kim Alvefur [Fri, 18 Apr 2014 05:51:41 +0000 (07:51 +0200)]
mod_s2s: Replace open_stream() with function that only adds s2s/dialback attributes to stream header

10 years agoutil.xmppstream: Check for callback that may add stream header attributes
Kim Alvefur [Fri, 18 Apr 2014 05:50:44 +0000 (07:50 +0200)]
util.xmppstream: Check for callback that may add stream header attributes

10 years agonet.http.server: Fix some typos introduced in 420c0d3b8583.
Daurnimator [Tue, 15 Apr 2014 18:51:49 +0000 (14:51 -0400)]
net.http.server: Fix some typos introduced in 420c0d3b8583.