prosody.git
14 years agomod_tls: Mark sessions as not secure when negotiating outward TLS, so they get marked...
Matthew Wild [Tue, 6 Oct 2009 09:34:13 +0000 (10:34 +0100)]
mod_tls: Mark sessions as not secure when negotiating outward TLS, so they get marked secure later. Fixes missing (encrypted) for outgoing sessions in s2s:show(). Thanks albert, McKael :)

14 years agohostmanager: Only initialse SSL contexts if SSL library available
Matthew Wild [Mon, 5 Oct 2009 21:15:32 +0000 (22:15 +0100)]
hostmanager: Only initialse SSL contexts if SSL library available

14 years agomod_console: Also search piggy-backed, er, multiplexed domains when passing a filter...
Matthew Wild [Mon, 5 Oct 2009 17:47:01 +0000 (18:47 +0100)]
mod_console: Also search piggy-backed, er, multiplexed domains when passing a filter to s2s:show()

14 years agoMerge with 0.5
Matthew Wild [Mon, 5 Oct 2009 17:42:42 +0000 (18:42 +0100)]
Merge with 0.5

14 years agoutil.array: Small logic fix for array:filter()
Matthew Wild [Mon, 5 Oct 2009 17:39:28 +0000 (18:39 +0100)]
util.array: Small logic fix for array:filter()

14 years agoMerge with 0.5
Matthew Wild [Mon, 5 Oct 2009 16:57:59 +0000 (17:57 +0100)]
Merge with 0.5

14 years agoutil.array: Fix for array:filter() (in-place filtering)
Matthew Wild [Mon, 5 Oct 2009 16:56:31 +0000 (17:56 +0100)]
util.array: Fix for array:filter() (in-place filtering)

14 years agoutil.array: Fix for array:filter() (in-place filtering)
Matthew Wild [Mon, 5 Oct 2009 16:56:31 +0000 (17:56 +0100)]
util.array: Fix for array:filter() (in-place filtering)

14 years agomod_console: s2s:show(): Indicate when a connection is encrypted
Matthew Wild [Mon, 5 Oct 2009 14:16:34 +0000 (15:16 +0100)]
mod_console: s2s:show(): Indicate when a connection is encrypted

14 years agomod_tls: require_s2s_encryption -> s2s_require_encryption
Matthew Wild [Mon, 5 Oct 2009 14:00:05 +0000 (15:00 +0100)]
mod_tls: require_s2s_encryption -> s2s_require_encryption

14 years agorequire_encryption deprecated, use c2s_require_encryption instead
Matthew Wild [Mon, 5 Oct 2009 13:59:30 +0000 (14:59 +0100)]
require_encryption deprecated, use c2s_require_encryption instead

14 years agomod_tls: Mark starttls feature as <required/> if require_s2s_encryption is enabled
Matthew Wild [Mon, 5 Oct 2009 13:52:30 +0000 (14:52 +0100)]
mod_tls: Mark starttls feature as <required/> if require_s2s_encryption is enabled

14 years agomod_tls: Mark session as not secure before negotiating TLS
Matthew Wild [Mon, 5 Oct 2009 13:51:53 +0000 (14:51 +0100)]
mod_tls: Mark session as not secure before negotiating TLS

14 years agos2smanager: Mark session as secure if it was negotiating TLS and opens a new stream
Matthew Wild [Mon, 5 Oct 2009 13:50:27 +0000 (14:50 +0100)]
s2smanager: Mark session as secure if it was negotiating TLS and opens a new stream

14 years agoMerge with 0.5
Matthew Wild [Mon, 5 Oct 2009 13:42:56 +0000 (14:42 +0100)]
Merge with 0.5

14 years agomod_console: Add module:list() to help
Matthew Wild [Mon, 5 Oct 2009 13:42:23 +0000 (14:42 +0100)]
mod_console: Add module:list() to help

14 years agomod_console: Add module:list() to help
Matthew Wild [Mon, 5 Oct 2009 13:42:23 +0000 (14:42 +0100)]
mod_console: Add module:list() to help

14 years agomod_console: Add module:list() command to show modules loaded on a host
Matthew Wild [Mon, 5 Oct 2009 13:40:01 +0000 (14:40 +0100)]
mod_console: Add module:list() command to show modules loaded on a host

14 years agomod_console: Add module:list() command to show modules loaded on a host
Matthew Wild [Mon, 5 Oct 2009 13:40:01 +0000 (14:40 +0100)]
mod_console: Add module:list() command to show modules loaded on a host

14 years agoutil.array: Per-array methods now always mutate the array, array.* return a mutated...
Matthew Wild [Mon, 5 Oct 2009 13:38:04 +0000 (14:38 +0100)]
util.array: Per-array methods now always mutate the array, array.* return a mutated copy, and most methods (e.g. sort) now return the array

14 years agoutil.array: Per-array methods now always mutate the array, array.* return a mutated...
Matthew Wild [Mon, 5 Oct 2009 13:38:04 +0000 (14:38 +0100)]
util.array: Per-array methods now always mutate the array, array.* return a mutated copy, and most methods (e.g. sort) now return the array

14 years agomodulemanager: Add host.modules to contain a table of modules for a host
Matthew Wild [Mon, 5 Oct 2009 09:42:36 +0000 (10:42 +0100)]
modulemanager: Add host.modules to contain a table of modules for a host

14 years agomodulemanager: Add host.modules to contain a table of modules for a host
Matthew Wild [Mon, 5 Oct 2009 09:42:36 +0000 (10:42 +0100)]
modulemanager: Add host.modules to contain a table of modules for a host

14 years agomod_tls: Only advertise TLS if the server told us which host they are connecting to
Matthew Wild [Mon, 5 Oct 2009 09:10:53 +0000 (10:10 +0100)]
mod_tls: Only advertise TLS if the server told us which host they are connecting to

14 years agoxmppserver_listener: Lower log-level of debug message to, er, 'debug'
Matthew Wild [Mon, 5 Oct 2009 09:07:06 +0000 (10:07 +0100)]
xmppserver_listener: Lower log-level of debug message to, er, 'debug'

14 years agonet.adns: Bump log-level of DNS handler errors to, er, 'error'
Matthew Wild [Mon, 5 Oct 2009 08:56:08 +0000 (09:56 +0100)]
net.adns: Bump log-level of DNS handler errors to, er, 'error'

14 years agoMerge with 0.5
Waqas Hussain [Sun, 4 Oct 2009 17:12:12 +0000 (22:12 +0500)]
Merge with 0.5

14 years agostanza_router: Reply to IQ requests with missing 'id' attribute with a bad-request...
Waqas Hussain [Sun, 4 Oct 2009 16:46:35 +0000 (21:46 +0500)]
stanza_router: Reply to IQ requests with missing 'id' attribute with a bad-request error.

14 years agorostermanager: Fixed: Roster version was not being properly updated in some edge...
Waqas Hussain [Sun, 4 Oct 2009 16:34:17 +0000 (21:34 +0500)]
rostermanager: Fixed: Roster version was not being properly updated in some edge cases.

14 years agorostermanager: Added support for saving rosters of offline users to the save_roster...
Waqas Hussain [Sun, 4 Oct 2009 16:25:59 +0000 (21:25 +0500)]
rostermanager: Added support for saving rosters of offline users to the save_roster function.

14 years agomod_tls: :up() out of the starttls tag in stream:features
Matthew Wild [Sun, 4 Oct 2009 12:24:04 +0000 (13:24 +0100)]
mod_tls: :up() out of the starttls tag in stream:features

14 years agoSpecify XMPP version on response stream to incoming s2s connection.
Paul Aurich [Sun, 4 Oct 2009 06:23:00 +0000 (23:23 -0700)]
Specify XMPP version on response stream to incoming s2s connection.

14 years agoMinor changes; outgoing TLS works.
Paul Aurich [Sun, 4 Oct 2009 02:20:20 +0000 (19:20 -0700)]
Minor changes; outgoing TLS works.

14 years agohostmanager: Create ssl context for each host (fixes #30 for outgoing s2s connections)
Matthew Wild [Sun, 4 Oct 2009 15:50:22 +0000 (16:50 +0100)]
hostmanager: Create ssl context for each host (fixes #30 for outgoing s2s connections)

14 years agologgingmanager: Whitespace fix
Matthew Wild [Sun, 4 Oct 2009 15:41:33 +0000 (16:41 +0100)]
loggingmanager: Whitespace fix

14 years agos2smanager: Small comment
Matthew Wild [Sun, 4 Oct 2009 15:40:24 +0000 (16:40 +0100)]
s2smanager: Small comment

14 years agos2smanager: Don't wait for stream:features from non-XMPP-1.0 hosts
Matthew Wild [Sun, 4 Oct 2009 15:39:57 +0000 (16:39 +0100)]
s2smanager: Don't wait for stream:features from non-XMPP-1.0 hosts

14 years agos2smanager: Send stream:features for incoming s2s connections which support XMPP 1.0
Matthew Wild [Sun, 4 Oct 2009 15:38:33 +0000 (16:38 +0100)]
s2smanager: Send stream:features for incoming s2s connections which support XMPP 1.0

14 years agos2smanager: Give outgoing sessions a host field (the local one)
Matthew Wild [Sun, 4 Oct 2009 15:34:17 +0000 (16:34 +0100)]
s2smanager: Give outgoing sessions a host field (the local one)

14 years agostanza_router: Add COMPAT comment for Pidgin workaround
Matthew Wild [Sun, 4 Oct 2009 15:31:27 +0000 (16:31 +0100)]
stanza_router: Add COMPAT comment for Pidgin workaround

14 years agonet.server: Small logging improvements
Matthew Wild [Sun, 4 Oct 2009 15:05:11 +0000 (16:05 +0100)]
net.server: Small logging improvements

14 years agonet.server: Pass current time to timer callbacks
Matthew Wild [Sun, 4 Oct 2009 15:04:33 +0000 (16:04 +0100)]
net.server: Pass current time to timer callbacks

14 years agonet.server: Increase SSL handshake round-trip limit, and make it configurable
Matthew Wild [Sun, 4 Oct 2009 15:03:53 +0000 (16:03 +0100)]
net.server: Increase SSL handshake round-trip limit, and make it configurable

14 years agonet.server: Call handler's status() to notify it of ssl handshake success
Matthew Wild [Sun, 4 Oct 2009 14:58:21 +0000 (15:58 +0100)]
net.server: Call handler's status() to notify it of ssl handshake success

14 years agonet.server: Provide a way to get sslctx of a client connection
Matthew Wild [Sun, 4 Oct 2009 14:56:55 +0000 (15:56 +0100)]
net.server: Provide a way to get sslctx of a client connection

14 years agonet.server: Provide a way to get sslctx of a server
Matthew Wild [Sun, 4 Oct 2009 14:56:27 +0000 (15:56 +0100)]
net.server: Provide a way to get sslctx of a server

14 years agoxmppserver_listener: Add status() function to signal when a connection completes...
Matthew Wild [Sun, 4 Oct 2009 13:35:39 +0000 (14:35 +0100)]
xmppserver_listener: Add status() function to signal when a connection completes its SSL handshake

14 years agoxmppserver_listener: Add logger to s2s sessions
Matthew Wild [Sun, 4 Oct 2009 13:24:55 +0000 (14:24 +0100)]
xmppserver_listener: Add logger to s2s sessions

14 years agoxmppserver_listener: Small whitespace fix
Matthew Wild [Sun, 4 Oct 2009 13:17:54 +0000 (14:17 +0100)]
xmppserver_listener: Small whitespace fix

14 years agoxmppserver_listener: Better log messages on invalid XML
Matthew Wild [Sun, 4 Oct 2009 13:15:36 +0000 (14:15 +0100)]
xmppserver_listener: Better log messages on invalid XML

14 years agomod_dialback: Initiate dialback on incoming stream:features
Matthew Wild [Sun, 4 Oct 2009 13:10:24 +0000 (14:10 +0100)]
mod_dialback: Initiate dialback on incoming stream:features

14 years agomod_tls: Advertise and handle TLS for s2s connections
Matthew Wild [Sun, 4 Oct 2009 13:06:45 +0000 (14:06 +0100)]
mod_tls: Advertise and handle TLS for s2s connections

14 years agoutil.stanza: Add __type to metatable
Matthew Wild [Sun, 4 Oct 2009 13:03:08 +0000 (14:03 +0100)]
util.stanza: Add __type to metatable

14 years agosessionmanager: Use UUID for stream ids to clients, no math.random anymore :)
Matthew Wild [Sat, 3 Oct 2009 17:40:47 +0000 (18:40 +0100)]
sessionmanager: Use UUID for stream ids to clients, no math.random anymore :)

14 years agosessionmanager: Add c2s_timeout option for unauthenticated client connections
Matthew Wild [Sat, 3 Oct 2009 01:41:28 +0000 (02:41 +0100)]
sessionmanager: Add c2s_timeout option for unauthenticated client connections

14 years agoutil.timer: Pass current_time to timer callbacks
Matthew Wild [Sat, 3 Oct 2009 01:33:33 +0000 (02:33 +0100)]
util.timer: Pass current_time to timer callbacks

14 years agomod_httpserver: Update to use new httpserver.new_from_config syntax
Matthew Wild [Fri, 2 Oct 2009 23:57:26 +0000 (00:57 +0100)]
mod_httpserver: Update to use new httpserver.new_from_config syntax

14 years agomod_bosh: Update to use new httpserver.new_from_config syntax
Matthew Wild [Fri, 2 Oct 2009 23:56:45 +0000 (00:56 +0100)]
mod_bosh: Update to use new httpserver.new_from_config syntax

14 years agonet.httpserver: Allow modules registering to provide more than just a default path...
Matthew Wild [Fri, 2 Oct 2009 23:54:58 +0000 (00:54 +0100)]
net.httpserver: Allow modules registering to provide more than just a default path when using httpserver.new_from_config

14 years agoMerge with 0.5
Matthew Wild [Fri, 2 Oct 2009 21:37:44 +0000 (22:37 +0100)]
Merge with 0.5

14 years agoutil.muc: Fix location of <x> element on error replies
Matthew Wild [Fri, 2 Oct 2009 21:37:03 +0000 (22:37 +0100)]
util.muc: Fix location of <x> element on error replies

14 years agoMerge with 0.5
Matthew Wild [Fri, 2 Oct 2009 20:24:16 +0000 (21:24 +0100)]
Merge with 0.5

14 years agomod_bosh: Fix for 'invalid key to next' error when 2 clients lose connection at the...
Matthew Wild [Fri, 2 Oct 2009 20:23:32 +0000 (21:23 +0100)]
mod_bosh: Fix for 'invalid key to next' error when 2 clients lose connection at the same time

14 years agonet.server: Fix missing concatenation operator in error message
Matthew Wild [Fri, 2 Oct 2009 20:20:53 +0000 (21:20 +0100)]
net.server: Fix missing concatenation operator in error message

14 years agoMUC: Prep given JID when changing affiliation.
Waqas Hussain [Fri, 2 Oct 2009 12:56:24 +0000 (17:56 +0500)]
MUC: Prep given JID when changing affiliation.

14 years agoMerge with 0.5
Waqas Hussain [Fri, 2 Oct 2009 12:51:53 +0000 (17:51 +0500)]
Merge with 0.5

14 years agoMerge
Waqas Hussain [Fri, 2 Oct 2009 12:14:54 +0000 (17:14 +0500)]
Merge

14 years agomod_register: Added helpful text to registration error responses.
Waqas Hussain [Fri, 2 Oct 2009 12:07:18 +0000 (17:07 +0500)]
mod_register: Added helpful text to registration error responses.

14 years agomod_register: Changed error type for hitting registration rate limit from 'cancel...
Waqas Hussain [Fri, 2 Oct 2009 11:52:50 +0000 (16:52 +0500)]
mod_register: Changed error type for hitting registration rate limit from 'cancel' to 'wait'.

14 years agomod_register: Fixed: No error was returned if username failed nodeprep.
Waqas Hussain [Fri, 2 Oct 2009 11:50:30 +0000 (16:50 +0500)]
mod_register: Fixed: No error was returned if username failed nodeprep.

14 years agoutil.encodings: Removed a bit of unreachable code.
Waqas Hussain [Fri, 2 Oct 2009 11:46:39 +0000 (16:46 +0500)]
util.encodings: Removed a bit of unreachable code.

14 years agoutil.encodings: Included idn-free.h, which explicitly declares the idn_free function.
Waqas Hussain [Fri, 2 Oct 2009 11:45:54 +0000 (16:45 +0500)]
util.encodings: Included idn-free.h, which explicitly declares the idn_free function.

14 years agoutil.encodings: Fixed: Last change was not ANSI C compatible.
Waqas Hussain [Fri, 2 Oct 2009 11:44:14 +0000 (16:44 +0500)]
util.encodings: Fixed: Last change was not ANSI C compatible.

14 years agoMerge with 0.5
Matthew Wild [Wed, 30 Sep 2009 10:06:02 +0000 (11:06 +0100)]
Merge with 0.5

14 years agomodulemanager: Load modules for components, too
Matthew Wild [Wed, 30 Sep 2009 10:05:26 +0000 (11:05 +0100)]
modulemanager: Load modules for components, too

14 years agocomponentmanager: Preserve existing events table (if any) when registering a component
Matthew Wild [Wed, 30 Sep 2009 10:05:01 +0000 (11:05 +0100)]
componentmanager: Preserve existing events table (if any) when registering a component

14 years agocomponentmanager: Fire event on component activation
Matthew Wild [Wed, 30 Sep 2009 10:03:11 +0000 (11:03 +0100)]
componentmanager: Fire event on component activation

14 years agocomponentmanager: Use create_component for, er, creating components
Matthew Wild [Wed, 30 Sep 2009 10:02:31 +0000 (11:02 +0100)]
componentmanager: Use create_component for, er, creating components

14 years agohostmanager: Only load vhosts, not components
Matthew Wild [Wed, 30 Sep 2009 10:01:21 +0000 (11:01 +0100)]
hostmanager: Only load vhosts, not components

14 years agoMerge with 0.5
Matthew Wild [Tue, 29 Sep 2009 18:56:23 +0000 (19:56 +0100)]
Merge with 0.5

14 years agomod_saslauth: Prep username used for authenticating a session
Matthew Wild [Tue, 29 Sep 2009 18:54:31 +0000 (19:54 +0100)]
mod_saslauth: Prep username used for authenticating a session

14 years agoMerge with 0.5
Matthew Wild [Tue, 29 Sep 2009 18:07:17 +0000 (19:07 +0100)]
Merge with 0.5

14 years agoutil.encodings: Don't throw an error but return nil when passed nil or a non-string...
Matthew Wild [Tue, 29 Sep 2009 18:05:32 +0000 (19:05 +0100)]
util.encodings: Don't throw an error but return nil when passed nil or a non-string value

14 years agoMerge with 0.5
Matthew Wild [Tue, 29 Sep 2009 13:22:43 +0000 (14:22 +0100)]
Merge with 0.5

14 years agoutil.pposix: Compatibility with Solaris systems (thanks Filip)
Matthew Wild [Tue, 29 Sep 2009 13:22:02 +0000 (14:22 +0100)]
util.pposix: Compatibility with Solaris systems (thanks Filip)

14 years agoutil.signal: Change ifdef to allow signal.kill() on Solaris (thanks Filip)
Matthew Wild [Tue, 29 Sep 2009 13:06:43 +0000 (14:06 +0100)]
util.signal: Change ifdef to allow signal.kill() on Solaris (thanks Filip)

14 years agoMakefile: Don't combine variable export with assignment for compatibility with other...
Matthew Wild [Tue, 29 Sep 2009 12:59:35 +0000 (13:59 +0100)]
Makefile: Don't combine variable export with assignment for compatibility with other shells (thanks Filip)

14 years agoMerge with 0.5
Matthew Wild [Sun, 27 Sep 2009 12:20:17 +0000 (13:20 +0100)]
Merge with 0.5

14 years agoTagging 0.5.2
Matthew Wild [Sun, 27 Sep 2009 12:19:40 +0000 (13:19 +0100)]
Tagging 0.5.2

14 years agoMerge with trunk
Matthew Wild [Sun, 27 Sep 2009 11:28:45 +0000 (12:28 +0100)]
Merge with trunk

14 years agoMerge with 0.5
Matthew Wild [Sun, 27 Sep 2009 11:26:51 +0000 (12:26 +0100)]
Merge with 0.5

14 years agoMerge with waqas
Matthew Wild [Sun, 27 Sep 2009 11:10:50 +0000 (12:10 +0100)]
Merge with waqas

14 years agoMerge with waqas
Matthew Wild [Sun, 27 Sep 2009 11:10:36 +0000 (12:10 +0100)]
Merge with waqas

14 years agocore.s2smanager: Always use last record in the DNS cache
Matthew Wild [Sun, 27 Sep 2009 10:59:11 +0000 (11:59 +0100)]
core.s2smanager: Always use last record in the DNS cache

14 years agomod_legacyauth: Don't allow server-generated resource identifiers, as these are not...
Waqas Hussain [Sun, 27 Sep 2009 10:50:41 +0000 (15:50 +0500)]
mod_legacyauth: Don't allow server-generated resource identifiers, as these are not support by legacy auth.

14 years agomod_legacyauth: Undo auth on bind fail. Legacy auth is atomic.
Waqas Hussain [Sun, 27 Sep 2009 10:30:01 +0000 (15:30 +0500)]
mod_legacyauth: Undo auth on bind fail. Legacy auth is atomic.

14 years agomod_legacyauth: Added node and resource prepping.
Waqas Hussain [Sun, 27 Sep 2009 10:21:08 +0000 (15:21 +0500)]
mod_legacyauth: Added node and resource prepping.

14 years agoMUC: Added multi-session support to the room-exiting occupant use case.
Waqas Hussain [Fri, 25 Sep 2009 07:39:28 +0000 (12:39 +0500)]
MUC: Added multi-session support to the room-exiting occupant use case.

14 years agoMUC: Renamed a variable name.
Waqas Hussain [Fri, 25 Sep 2009 07:36:11 +0000 (12:36 +0500)]
MUC: Renamed a variable name.

14 years agoMUC: Refactored to remove some duplicate code.
Waqas Hussain [Fri, 25 Sep 2009 07:35:09 +0000 (12:35 +0500)]
MUC: Refactored to remove some duplicate code.