Commit graph

99 commits

Author SHA1 Message Date
Waqas Hussain
75459a7ca5 mod_tls: Cleanup. 2010-02-12 03:46:48 +05:00
Waqas Hussain
4df5e22f1e mod_tls: Fixed an extra :up() in s2s stream feature generation. 2010-02-12 03:14:53 +05:00
Waqas Hussain
91d9bb9a66 mod_tls: Remove origin type check when TLS is requested (thanks MattJ). 2010-02-12 02:43:02 +05:00
Waqas Hussain
2bfb7b55ed mod_tls: Respond with proper error when TLS cannot be negotiated. 2010-02-12 02:39:50 +05:00
Waqas Hussain
eeca1d016a mod_tls: Inlined some code. 2010-02-12 02:32:27 +05:00
Waqas Hussain
23cbd2c45e mod_tls: Merged duplicate code. 2010-02-12 02:15:54 +05:00
Waqas Hussain
9d2742cc9a mod_tls: Switched to new events API. 2010-02-12 01:56:18 +05:00
Waqas Hussain
bdc87e4345 mod_tls: Slight refactoring. 2010-02-12 01:47:10 +05:00
Waqas Hussain
6d21bd8cf4 mod_tls: Don't advertise TLS after authentication. 2010-02-10 01:36:22 +05:00
Matthew Wild
0a591ad33a mod_tls: Remove some redundant variable declarations 2010-01-31 15:40:28 +00:00
Matthew Wild
b870a3fe51 mod_tls: Set the sslctx on outgoing connections (possibly the cause of outgoing s2s connections not being encrypted) 2010-01-31 15:39:49 +00:00
Matthew Wild
f8a121c33b mod_tls: Update for new server SSL syntax 2010-01-31 15:39:04 +00:00
Matthew Wild
0c333f589c mod_tls: Set the sslctx on outgoing connections (possibly the cause of outgoing s2s connections not being encrypted) 2010-01-31 15:39:49 +00:00
Matthew Wild
d578bb8ff2 mod_tls: Switch to : syntax for connection methods 2009-11-21 17:16:46 +00:00
Matthew Wild
4bfd2f37a9 mod_tls: Don't offer TLS on hosts that don't have any certs 2010-02-12 21:33:22 +00:00
Waqas Hussain
db783f4a21 mod_tls: Fixed an extra :up() in s2s stream feature generation. 2010-02-12 03:14:53 +05:00
Waqas Hussain
2e726abc77 mod_tls: Respond with proper error when TLS cannot be negotiated. 2010-02-12 02:39:50 +05:00
Matthew Wild
a3472930c0 mod_tls: Offer the host-specific cert (when there is one) to incoming c2s/s2s connections, fixes #30 (thanks, albert, Flo, johnny, and all who nagged me :) ) 2009-10-17 16:25:28 +01:00
Matthew Wild
ed822f1ef0 mod_tls: Don't try to start TLS if we can't actually do it (thanks Florob) 2009-10-09 17:48:45 +01:00
Matthew Wild
fd3ddd9222 mod_tls: Catch s2s-stream-features and add starttls feature if possible 2009-10-08 23:41:59 +01:00
Matthew Wild
f13dfe04be 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 :) 2009-10-06 10:34:13 +01:00
Matthew Wild
9ea966ae38 mod_tls: require_s2s_encryption -> s2s_require_encryption 2009-10-05 15:00:05 +01:00
Matthew Wild
de057a2b2b require_encryption deprecated, use c2s_require_encryption instead 2009-10-05 14:59:30 +01:00
Matthew Wild
57d6a05e83 mod_tls: Mark starttls feature as <required/> if require_s2s_encryption is enabled 2009-10-05 14:52:30 +01:00
Matthew Wild
6e6adedce2 mod_tls: Mark session as not secure before negotiating TLS 2009-10-05 14:51:53 +01:00
Matthew Wild
0737347176 mod_tls: Only advertise TLS if the server told us which host they are connecting to 2009-10-05 10:10:53 +01:00
Matthew Wild
c6ec71bee0 mod_tls: :up() out of the starttls tag in stream:features 2009-10-04 13:24:04 +01:00
Paul Aurich
02d5993f79 Minor changes; outgoing TLS works. 2009-10-03 19:20:20 -07:00
Matthew Wild
2f436e1b7f mod_tls: Advertise and handle TLS for s2s connections 2009-10-04 14:06:45 +01:00
Tobias Markmann
cbf4a37b6f Another unwanted spaces at the end of a line. 2009-08-13 11:35:50 +02:00
Waqas Hussain
b3d4c0ec73 mod_tls: Updated to use module:get_option instead of configmanager 2009-08-08 23:41:45 +05:00
Matthew Wild
118883d655 Remove version number from copyright headers 2009-07-10 03:11:45 +01:00
Matthew Wild
ff5a8142da mod_tls: Add <required/> to stream feature when TLS is required 2009-05-29 18:17:03 +01:00
Matthew Wild
81fedc9a08 sessionmanager, mod_tls: Mark a session as secure when TLS is active 2009-05-29 14:28:53 +01:00
Matthew Wild
c80f91dc02 0.3->0.4 2009-03-20 20:16:25 +00:00
Matthew Wild
c5ee166aa9 Update copyright notices for 2009 2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f 0.2->0.3 2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d GPL->MIT! 2009-01-30 17:22:56 +00:00
Waqas Hussain
5e41870700 mod_saslauth, mod_tls: minor code cleanup 2009-01-13 19:37:12 +05:00
Matthew Wild
b1bf7f567a Remove a FIXME from mod_tls 2008-12-15 18:06:59 +00:00
Matthew Wild
d3ad4a5123 0.1 -> 0.2 2008-12-10 15:44:03 +00:00
Matthew Wild
0c5cc83112 Insert copyright/license headers 2008-12-03 14:39:07 +00:00
Matthew Wild
a153b3c267 Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store. 2008-11-27 03:12:12 +00:00
Matthew Wild
5c7ec634b1 Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME. 2008-11-20 01:33:25 +00:00
Waqas Hussain
164a1d1c08 Fixed mod_tls to use session.send for sending stanzas 2008-11-16 05:03:21 +05:00
Waqas Hussain
803c3e4a90 Unused variables in mod_tls 2008-11-16 02:52:54 +05:00
Matthew Wild
59dd4ed3cd TLS/SASL no longer should include the connhandler module 2008-10-23 03:53:51 +01:00
Matthew Wild
ee7b432ab1 Abstract connections with "connection listeners"
- Added connlistener for xmppclient
- SASL/TLS now use a new session:reset_stream() method
- main.lua on its way to being a bit neater
2008-10-22 17:36:21 +01:00
Matthew Wild
014df9a22a forgot to commit mod_tls, oops :) 2008-10-07 23:13:30 +01:00