prosody.git
14 years agoMakefile: Remove fallbacks/
Matthew Wild [Mon, 15 Feb 2010 23:06:57 +0000 (23:06 +0000)]
Makefile: Remove fallbacks/

14 years agoprosody: Don't add fallbacks to package.path and package.cpath.
Waqas Hussain [Mon, 15 Feb 2010 23:05:25 +0000 (04:05 +0500)]
prosody: Don't add fallbacks to package.path and package.cpath.

14 years agoutil.sasl.scram: Removed unnecessary dependency on bitlib.
Waqas Hussain [Mon, 15 Feb 2010 23:02:37 +0000 (04:02 +0500)]
util.sasl.scram: Removed unnecessary dependency on bitlib.

14 years agomod_saslauth: Log debug message with full error if cyrussasl couldn't be loaded
Matthew Wild [Mon, 15 Feb 2010 22:56:36 +0000 (22:56 +0000)]
mod_saslauth: Log debug message with full error if cyrussasl couldn't be loaded

14 years agomod_saslauth: Correct syntax for gracefully handling a missing cyrussasl library
Matthew Wild [Mon, 15 Feb 2010 22:56:15 +0000 (22:56 +0000)]
mod_saslauth: Correct syntax for gracefully handling a missing cyrussasl library

14 years agonet.server: Remove redundant commented code and some trailing whitespace
Matthew Wild [Mon, 15 Feb 2010 22:53:32 +0000 (22:53 +0000)]
net.server: Remove redundant commented code and some trailing whitespace

14 years agomod_presence: Added config option 'bare_message_delivery_policy'. Allowed values...
Waqas Hussain [Mon, 15 Feb 2010 03:04:25 +0000 (08:04 +0500)]
mod_presence: Added config option 'bare_message_delivery_policy'. Allowed values are 'priority' (default) and 'broadcast'.

14 years agomod_presence: Reflect the user's own presence back to them.
Waqas Hussain [Sun, 14 Feb 2010 23:15:37 +0000 (04:15 +0500)]
mod_presence: Reflect the user's own presence back to them.

14 years agomod_saslauth: Warn and fallback gracefully when Cyrus SASL is requested, but missing.
Waqas Hussain [Sun, 14 Feb 2010 21:51:07 +0000 (02:51 +0500)]
mod_saslauth: Warn and fallback gracefully when Cyrus SASL is requested, but missing.

14 years agonet.server_event: Fire onincoming() callback for new connections as opposed to the...
Matthew Wild [Sun, 14 Feb 2010 20:47:09 +0000 (20:47 +0000)]
net.server_event: Fire onincoming() callback for new connections as opposed to the new onconnect() - let's change this for a future version though

14 years agoconfigmanager: Remove debugging code accidentally committed
Matthew Wild [Sun, 14 Feb 2010 20:37:49 +0000 (20:37 +0000)]
configmanager: Remove debugging code accidentally committed

14 years agonet.server_event: Fix another instance of creating an SSL context - certmanager now...
Matthew Wild [Sun, 14 Feb 2010 20:36:54 +0000 (20:36 +0000)]
net.server_event: Fix another instance of creating an SSL context - certmanager now does this

14 years agonet.server_event: Fix traceback in creating SSL context
Matthew Wild [Sun, 14 Feb 2010 20:15:17 +0000 (20:15 +0000)]
net.server_event: Fix traceback in creating SSL context

14 years agoconfigmanager: Error when a component and host clash hostnames
Matthew Wild [Sun, 14 Feb 2010 18:41:44 +0000 (18:41 +0000)]
configmanager: Error when a component and host clash hostnames

14 years agomod_tls: Ban TLS after auth, not before.
Waqas Hussain [Sun, 14 Feb 2010 05:00:39 +0000 (10:00 +0500)]
mod_tls: Ban TLS after auth, not before.

14 years agomod_tls: Fixed traceback during S2S TLS (nil global access).
Waqas Hussain [Sun, 14 Feb 2010 04:59:57 +0000 (09:59 +0500)]
mod_tls: Fixed traceback during S2S TLS (nil global access).

14 years agomod_saslauth: Don't print raw SASL data to avoid logging passwords unnecessarily
Matthew Wild [Sat, 13 Feb 2010 19:35:12 +0000 (19:35 +0000)]
mod_saslauth: Don't print raw SASL data to avoid logging passwords unnecessarily

14 years agoprosody: More accurate friendly error message in the event that creating the global...
Matthew Wild [Sat, 13 Feb 2010 16:22:05 +0000 (16:22 +0000)]
prosody: More accurate friendly error message in the event that creating the global SSL context fails

14 years agoprosody: Use certmanager to create the global SSL context
Matthew Wild [Sat, 13 Feb 2010 16:21:32 +0000 (16:21 +0000)]
prosody: Use certmanager to create the global SSL context

14 years agoMerge with 0.7
Matthew Wild [Sat, 13 Feb 2010 16:12:53 +0000 (16:12 +0000)]
Merge with 0.7

14 years agocertmanager: Bring back the friendly errors when failing to load the key/certificate...
Matthew Wild [Sat, 13 Feb 2010 16:12:21 +0000 (16:12 +0000)]
certmanager: Bring back the friendly errors when failing to load the key/certificate file

14 years agocomponentmanager: Use certmanager for creating contexts
Matthew Wild [Sat, 13 Feb 2010 16:10:01 +0000 (16:10 +0000)]
componentmanager: Use certmanager for creating contexts

14 years agocertmanager, hostmanager: Rename get_context() to create_context() to be more explici...
Matthew Wild [Sat, 13 Feb 2010 16:08:43 +0000 (16:08 +0000)]
certmanager, hostmanager: Rename get_context() to create_context() to be more explicit about what it does

14 years agoMerge with backout
Matthew Wild [Sat, 13 Feb 2010 15:34:33 +0000 (15:34 +0000)]
Merge with backout

14 years agoBacked out changeset cb1f9266130b: better way to achieve this to be committed Real...
Matthew Wild [Sat, 13 Feb 2010 15:34:22 +0000 (15:34 +0000)]
Backed out changeset cb1f9266130b: better way to achieve this to be committed Real Soon Now.

14 years agomod_tls: Refactor to simplify detection of whether we can do TLS on a connection
Matthew Wild [Fri, 12 Feb 2010 21:57:46 +0000 (21:57 +0000)]
mod_tls: Refactor to simplify detection of whether we can do TLS on a connection

14 years agostanza_router: Fire /self events for stanzas users send to their own bare JID.
Waqas Hussain [Fri, 12 Feb 2010 21:55:24 +0000 (02:55 +0500)]
stanza_router: Fire /self events for stanzas users send to their own bare JID.

14 years agomod_tls: Don't offer TLS on hosts that don't have any certs
Matthew Wild [Fri, 12 Feb 2010 21:33:22 +0000 (21:33 +0000)]
mod_tls: Don't offer TLS on hosts that don't have any certs

14 years agosessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan)
Matthew Wild [Fri, 12 Feb 2010 17:27:53 +0000 (17:27 +0000)]
sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan)

14 years agosessionmanager, s2smanager: Give sessions dummy data handlers that log when data...
Matthew Wild [Fri, 12 Feb 2010 17:14:54 +0000 (17:14 +0000)]
sessionmanager, s2smanager: Give sessions dummy data handlers that log when data is received by a destroyed session

14 years agonet.dns: Normalize records before placing them in the cache, fixes issues with CNAME...
Matthew Wild [Fri, 12 Feb 2010 15:05:48 +0000 (15:05 +0000)]
net.dns: Normalize records before placing them in the cache, fixes issues with CNAME targets in CAPS (fixes #161)

14 years agonet.dns: Update for new socket API
Matthew Wild [Fri, 12 Feb 2010 15:02:57 +0000 (15:02 +0000)]
net.dns: Update for new socket API

14 years agohostmanager: Small optimisation in checking whether a host is enabled
Matthew Wild [Fri, 12 Feb 2010 12:47:23 +0000 (12:47 +0000)]
hostmanager: Small optimisation in checking whether a host is enabled

14 years agohostmanager: Log an error if no hosts are defined
Matthew Wild [Fri, 12 Feb 2010 12:43:50 +0000 (12:43 +0000)]
hostmanager: Log an error if no hosts are defined

14 years agomod_privacy: Remove the non-working sendNeededUnavailablePresences() and the related...
Matthew Wild [Fri, 12 Feb 2010 12:29:53 +0000 (12:29 +0000)]
mod_privacy: Remove the non-working sendNeededUnavailablePresences() and the related commented code

14 years agomod_privacy: Fix to correctly iterate over lists stored in new format
Matthew Wild [Fri, 12 Feb 2010 12:28:45 +0000 (12:28 +0000)]
mod_privacy: Fix to correctly iterate over lists stored in new format

14 years agomod_privacy: Upgrade old privacy lists to new storage format, so they don't get lost
Matthew Wild [Fri, 12 Feb 2010 12:07:46 +0000 (12:07 +0000)]
mod_privacy: Upgrade old privacy lists to new storage format, so they don't get lost

14 years agos2smanager, mod_compression, mod_tls: Changed event.session to event.origin for s2s...
Waqas Hussain [Thu, 11 Feb 2010 23:30:17 +0000 (04:30 +0500)]
s2smanager, mod_compression, mod_tls: Changed event.session to event.origin for s2s-stream-features event for consistency.

14 years agomod_saslauth: Hook stream-features event using new events API.
Waqas Hussain [Thu, 11 Feb 2010 23:25:37 +0000 (04:25 +0500)]
mod_saslauth: Hook stream-features event using new events API.

14 years agomod_roster: Hook stream-features event using new events API.
Waqas Hussain [Thu, 11 Feb 2010 23:22:30 +0000 (04:22 +0500)]
mod_roster: Hook stream-features event using new events API.

14 years agomod_legacyauth: Hook stream-features event using new events API.
Waqas Hussain [Thu, 11 Feb 2010 23:22:01 +0000 (04:22 +0500)]
mod_legacyauth: Hook stream-features event using new events API.

14 years agomod_compression: Hook stream-features event using new events API.
Waqas Hussain [Thu, 11 Feb 2010 23:21:34 +0000 (04:21 +0500)]
mod_compression: Hook stream-features event using new events API.

14 years agomod_bosh: Fire stream-features event using new events API.
Waqas Hussain [Thu, 11 Feb 2010 23:11:50 +0000 (04:11 +0500)]
mod_bosh: Fire stream-features event using new events API.

14 years agomod_tls: Hook stream-features event using new events API.
Waqas Hussain [Thu, 11 Feb 2010 22:50:44 +0000 (03:50 +0500)]
mod_tls: Hook stream-features event using new events API.

14 years agosessionmanager: Fire stream-features event using new events API.
Waqas Hussain [Thu, 11 Feb 2010 22:49:05 +0000 (03:49 +0500)]
sessionmanager: Fire stream-features event using new events API.

14 years agomod_tls: Cleanup.
Waqas Hussain [Thu, 11 Feb 2010 22:46:48 +0000 (03:46 +0500)]
mod_tls: Cleanup.

14 years agomod_tls: Fixed an extra :up() in s2s stream feature generation.
Waqas Hussain [Thu, 11 Feb 2010 22:14:53 +0000 (03:14 +0500)]
mod_tls: Fixed an extra :up() in s2s stream feature generation.

14 years agoMerge with trunk.
Waqas Hussain [Thu, 11 Feb 2010 21:50:57 +0000 (02:50 +0500)]
Merge with trunk.

14 years agomod_tls: Remove origin type check when TLS is requested (thanks MattJ).
Waqas Hussain [Thu, 11 Feb 2010 21:43:02 +0000 (02:43 +0500)]
mod_tls: Remove origin type check when TLS is requested (thanks MattJ).

14 years agomod_tls: Respond with proper error when TLS cannot be negotiated.
Waqas Hussain [Thu, 11 Feb 2010 21:39:50 +0000 (02:39 +0500)]
mod_tls: Respond with proper error when TLS cannot be negotiated.

14 years agonet.server_event: Fixes for traceback with no LuaSec
Matthew Wild [Thu, 11 Feb 2010 21:32:49 +0000 (21:32 +0000)]
net.server_event: Fixes for traceback with no LuaSec

14 years agomod_tls: Inlined some code.
Waqas Hussain [Thu, 11 Feb 2010 21:32:27 +0000 (02:32 +0500)]
mod_tls: Inlined some code.

14 years agomod_tls: Merged duplicate code.
Waqas Hussain [Thu, 11 Feb 2010 21:15:54 +0000 (02:15 +0500)]
mod_tls: Merged duplicate code.

14 years agonet.server_select: Small indentation fix
Matthew Wild [Thu, 11 Feb 2010 21:13:45 +0000 (21:13 +0000)]
net.server_select: Small indentation fix

14 years agonet.server_select: Fix traceback with no LuaSec available (thanks Nolan)
Matthew Wild [Thu, 11 Feb 2010 21:09:59 +0000 (21:09 +0000)]
net.server_select: Fix traceback with no LuaSec available (thanks Nolan)

14 years agomod_tls: Switched to new events API.
Waqas Hussain [Thu, 11 Feb 2010 20:56:18 +0000 (01:56 +0500)]
mod_tls: Switched to new events API.

14 years agomod_tls: Slight refactoring.
Waqas Hussain [Thu, 11 Feb 2010 20:47:10 +0000 (01:47 +0500)]
mod_tls: Slight refactoring.

14 years agomod_presence: Don't depend on user being online when calculating top resources.
Waqas Hussain [Thu, 11 Feb 2010 19:55:06 +0000 (00:55 +0500)]
mod_presence: Don't depend on user being online when calculating top resources.

14 years agomod_presence: Don't depend on sessions array existing for a user when handling outgoi...
Waqas Hussain [Thu, 11 Feb 2010 19:54:14 +0000 (00:54 +0500)]
mod_presence: Don't depend on sessions array existing for a user when handling outgoing presence broadcast.

14 years agosessionmanager: Fire resource-unbind event after removing session from sessions table
Matthew Wild [Thu, 11 Feb 2010 19:34:23 +0000 (19:34 +0000)]
sessionmanager: Fire resource-unbind event after removing session from sessions table

14 years agomod_privacy: Remove use of to identify unspecified privacy list
Matthew Wild [Thu, 11 Feb 2010 18:49:17 +0000 (18:49 +0000)]
mod_privacy: Remove use of  to identify unspecified privacy list

14 years agomod_privacy: Fix potential traceback in stanza validation, and fix some zero-based...
Matthew Wild [Thu, 11 Feb 2010 18:44:42 +0000 (18:44 +0000)]
mod_privacy: Fix potential traceback in stanza validation, and fix some zero-based indexing :)

14 years agomod_privacy: Don't store the privacy lists as an array, but as a map... faster and...
Matthew Wild [Thu, 11 Feb 2010 12:10:06 +0000 (12:10 +0000)]
mod_privacy: Don't store the privacy lists as an array, but as a map... faster and less code

14 years agoprosody, prosodyctl: Re-jiggle load order again, fixes logging config not being obeye...
Matthew Wild [Thu, 11 Feb 2010 11:31:14 +0000 (11:31 +0000)]
prosody, prosodyctl: Re-jiggle load order again, fixes logging config not being obeyed (thanks darkrain)

14 years agologgingmanager: Trailing whitespace
Matthew Wild [Thu, 11 Feb 2010 11:04:26 +0000 (11:04 +0000)]
loggingmanager: Trailing whitespace

14 years agomodulemanager: Load plugin libraries in the same environment as the plugins.
Waqas Hussain [Thu, 11 Feb 2010 00:36:03 +0000 (05:36 +0500)]
modulemanager: Load plugin libraries in the same environment as the plugins.

14 years agomodulemanager: Make the plugin environment available directly (module.environment...
Waqas Hussain [Thu, 11 Feb 2010 00:34:53 +0000 (05:34 +0500)]
modulemanager: Make the plugin environment available directly (module.environment within plugins).

14 years agoutil.datamanager: Added support for hooks to override behavior.
Waqas Hussain [Thu, 11 Feb 2010 00:21:03 +0000 (05:21 +0500)]
util.datamanager: Added support for hooks to override behavior.

14 years agonet.server_select: Only allow starttls if luasec is available (thanks Nolan)
Matthew Wild [Wed, 10 Feb 2010 19:17:45 +0000 (19:17 +0000)]
net.server_select: Only allow starttls if luasec is available (thanks Nolan)

14 years agonet.server_select: *Major* whitespace refactoring to meet Prosody's coding style...
Matthew Wild [Wed, 10 Feb 2010 19:12:43 +0000 (19:12 +0000)]
net.server_select: *Major* whitespace refactoring to meet Prosody's coding style guidelines, we now have tabs

14 years agosessionmanager: Whitespace fix
Matthew Wild [Wed, 10 Feb 2010 07:53:25 +0000 (07:53 +0000)]
sessionmanager: Whitespace fix

14 years agomod_privacy: Rename from_user/to_user flags to is_from_user/is_to_user for clarity
Matthew Wild [Tue, 9 Feb 2010 06:49:03 +0000 (06:49 +0000)]
mod_privacy: Rename from_user/to_user flags to is_from_user/is_to_user for clarity

14 years agonet.dns, net.adns: Changed dns:socket_wrapper_set to dns.socket_wrapper_set for consi...
Waqas Hussain [Tue, 9 Feb 2010 20:58:49 +0000 (01:58 +0500)]
net.dns, net.adns: Changed dns:socket_wrapper_set to dns.socket_wrapper_set for consistency.

14 years agoutil.sasl_cyrus: Add text message from cyrussasl to <not-authorized/> errors.
Waqas Hussain [Tue, 9 Feb 2010 20:53:38 +0000 (01:53 +0500)]
util.sasl_cyrus: Add text message from cyrussasl to <not-authorized/> errors.

14 years agomod_tls: Don't advertise TLS after authentication.
Waqas Hussain [Tue, 9 Feb 2010 20:36:22 +0000 (01:36 +0500)]
mod_tls: Don't advertise TLS after authentication.

14 years agonet.dns: Fixed whitespace/indentation.
Waqas Hussain [Tue, 9 Feb 2010 19:46:04 +0000 (00:46 +0500)]
net.dns: Fixed whitespace/indentation.

14 years agonet.dns: Removed unused function.
Waqas Hussain [Tue, 9 Feb 2010 19:38:07 +0000 (00:38 +0500)]
net.dns: Removed unused function.

14 years agonet.dns: Removed some useless indirection to improve readability.
Waqas Hussain [Tue, 9 Feb 2010 19:34:30 +0000 (00:34 +0500)]
net.dns: Removed some useless indirection to improve readability.

14 years agoutil.encodings: Use STD3 ASCII rules for idna.to_ascii.
Waqas Hussain [Tue, 9 Feb 2010 19:12:48 +0000 (00:12 +0500)]
util.encodings: Use STD3 ASCII rules for idna.to_ascii.

14 years agonet.httpserver: Make request.conn be the server.lua conn instead of the underlying...
Matthew Wild [Mon, 8 Feb 2010 11:22:21 +0000 (11:22 +0000)]
net.httpserver: Make request.conn be the server.lua conn instead of the underlying socket (more useful this way)

14 years agonet.httpserver: Trailing whitespace
Matthew Wild [Mon, 8 Feb 2010 11:20:19 +0000 (11:20 +0000)]
net.httpserver: Trailing whitespace

14 years agoMerge with backout
Matthew Wild [Fri, 5 Feb 2010 17:46:58 +0000 (17:46 +0000)]
Merge with backout

14 years agoutil.sasl.digest-md5: Revert changeset 6094a4e2b6f3 as it breaks some clients, re...
Matthew Wild [Fri, 5 Feb 2010 17:46:46 +0000 (17:46 +0000)]
util.sasl.digest-md5: Revert changeset 6094a4e2b6f3 as it breaks some clients, re-visit some time down the line

14 years agoprosody: Add a catch-all friendly message for when any port is in use we want to use
Matthew Wild [Fri, 5 Feb 2010 15:05:39 +0000 (15:05 +0000)]
prosody: Add a catch-all friendly message for when any port is in use we want to use

14 years agoprosodyctl: Initialize logging before checking dependencies
Ali Sabil [Fri, 5 Feb 2010 15:01:21 +0000 (16:01 +0100)]
prosodyctl: Initialize logging before checking dependencies

14 years agoprosody: Initialize logging before checking dependencies (fixes another traceback...
Matthew Wild [Fri, 5 Feb 2010 14:32:20 +0000 (14:32 +0000)]
prosody: Initialize logging before checking dependencies (fixes another traceback with no LuaSec)

14 years agocertmanager: Fix traceback with no LuaSec
Matthew Wild [Fri, 5 Feb 2010 14:31:25 +0000 (14:31 +0000)]
certmanager: Fix traceback with no LuaSec

14 years agocertmanager: Tabs not spaces!
Matthew Wild [Fri, 5 Feb 2010 14:22:48 +0000 (14:22 +0000)]
certmanager: Tabs not spaces!

14 years agoutil.dependencies: Don't query the config (it isn't really necessary)
Matthew Wild [Fri, 5 Feb 2010 13:52:01 +0000 (13:52 +0000)]
util.dependencies: Don't query the config (it isn't really necessary)

14 years agonet.server_event: Update for compatibility with new server API
Matthew Wild [Sun, 31 Jan 2010 19:58:52 +0000 (19:58 +0000)]
net.server_event: Update for compatibility with new server API

14 years agonet.xmppserver_listener: status -> onstatus for consistency
Matthew Wild [Sun, 31 Jan 2010 19:57:58 +0000 (19:57 +0000)]
net.xmppserver_listener: status -> onstatus for consistency

14 years agonet.server_select: listener.status -> listener.onstatus for consistency
Matthew Wild [Sun, 31 Jan 2010 19:56:22 +0000 (19:56 +0000)]
net.server_select: listener.status -> listener.onstatus for consistency

14 years agonet.adns: Use different flavour of voodoo to make UDP sockets work smoothly with...
Matthew Wild [Sun, 31 Jan 2010 19:54:56 +0000 (19:54 +0000)]
net.adns: Use different flavour of voodoo to make UDP sockets work smoothly with libevent (no packet merging)

14 years agoutil.stanza: stanza.error_reply(): Fix to put the correct namespace on <text>
Matthew Wild [Sun, 31 Jan 2010 19:27:52 +0000 (19:27 +0000)]
util.stanza: stanza.error_reply(): Fix to put the correct namespace on <text>

14 years agonet.adns: Trailing whitespace
Matthew Wild [Sun, 31 Jan 2010 18:09:37 +0000 (18:09 +0000)]
net.adns: Trailing whitespace

14 years agohostmanager: Use certmanager for obtaining SSL contexts
Matthew Wild [Sun, 31 Jan 2010 17:23:39 +0000 (17:23 +0000)]
hostmanager: Use certmanager for obtaining SSL contexts

14 years agocertmanager: Hello world, I'm come to manage your SSL contexts
Matthew Wild [Sun, 31 Jan 2010 17:22:59 +0000 (17:22 +0000)]
certmanager: Hello world, I'm come to manage your SSL contexts

14 years agoprosody: Show friendly error when no config present for legacy SSL ports
Matthew Wild [Sun, 31 Jan 2010 17:15:35 +0000 (17:15 +0000)]
prosody: Show friendly error when no config present for legacy SSL ports

14 years agoconfigmanager: Trailing whitespace
Matthew Wild [Sun, 31 Jan 2010 17:14:52 +0000 (17:14 +0000)]
configmanager: Trailing whitespace

14 years agonet.connlisteners: Return an error if no SSL context is supplied for a connection...
Matthew Wild [Sun, 31 Jan 2010 17:08:57 +0000 (17:08 +0000)]
net.connlisteners: Return an error if no SSL context is supplied for a connection of type 'ssl'