Commit graph

273 commits

Author SHA1 Message Date
f651384d81 Move all roster handling code to XMPPRoster. 2011-04-25 19:48:30 +02:00
82982768bc Correctly handle stream restart. 2011-04-24 00:41:18 +02:00
f36f92f515 Adjust to recent ObjFW changes. 2011-04-23 22:40:32 +02:00
Florian Zeitz
d3d58b7697 Don't answer to IQs of type "error" or "result" 2011-04-15 02:51:17 +02:00
Florian Zeitz
d47fdd3380 Handle stream errors 2011-04-15 02:41:23 +02:00
Florian Zeitz
683fc1e3ae Split up XMPP_handleStanza.
Non-Stanzas are now handled in separate functions
2011-04-07 23:13:19 +02:00
Florian Zeitz
91b2a0b119 Clean up roster handling 2011-04-04 01:53:00 +02:00
Florian Zeitz
5fd19a3d1f Handle roster pushs 2011-04-04 00:48:37 +02:00
a9443417bc Add two delegates for TLS upgrades.
This way, an OFStreamObserver can be used even with TLS.
2011-04-03 13:48:59 +02:00
05c2784b17 Don't leak the old socket when using STARTTLS. 2011-04-02 16:07:49 +02:00
4121a434b7 Add -[socket] to XMPPConnection. 2011-04-01 04:26:54 +02:00
673daaf20b Add -[parseBuffer:withSize:] to XMPPConnection. 2011-04-01 04:23:18 +02:00
2554b3a778 Add convenience header and method. 2011-04-01 03:14:19 +02:00
f504246a1b Change how roster items are stored. 2011-04-01 03:09:04 +02:00
b35525fd2b Adjust to newest ObjFW and greatly improve XML handling. 2011-03-31 14:25:41 +02:00
59cb0a7954 Set the default namespace and prefixes when creating a new XMPPStanza. 2011-03-30 20:35:02 +02:00
9547bd112f Use OpenSSL to generate the nonce. 2011-03-30 20:12:47 +02:00
3f7a420b4e Use the "js buildsys". 2011-03-30 13:29:10 +02:00
b05300b119 Get rid of warnings. 2011-03-30 13:26:12 +02:00
edb38970db Import <bsd/stdlib.h> if not on a BSD system. Still needs LIBS=-lbsd. 2011-03-29 03:51:11 +02:00
5b16eaa1f0 Port to ObjC 1. 2011-03-29 03:46:20 +02:00
50012ba975 Get rid of unused variable useTLS. 2011-03-29 02:04:53 +02:00
dc0f6bfc69 Use ObjOpenSSL instead of ObjGnuTLS. 2011-03-28 22:43:54 +02:00
993d0a7596 Add -[XMPPRoster deleteRosterItem:] and -[XMPPRosterItem copy]. 2011-03-28 18:15:48 +02:00
823ea0eb5e Move namespace definitions and add -[XMPPRoster addRosterItem:]. 2011-03-28 17:30:40 +02:00
902ab046c0 gcc 4.6 does not seem to create implicit ivars. 2011-03-28 15:56:57 +02:00
915d5b5cab Add XMPPRoster class. 2011-03-28 15:14:27 +02:00
3e97096129 Add autorelease pools. 2011-03-28 01:55:02 +02:00
56ddb5c8de Add XMPPRosterItem class. 2011-03-28 01:47:48 +02:00
8ea345c02c Don't synthesize the getter when the setter isn't synthesized. 2011-03-27 23:50:14 +02:00
Florian Zeitz
666d710314 Make use of the XMPPStanza convenience functions 2011-03-24 18:57:34 +01:00
Florian Zeitz
1f98e7b726 Handle nil as argument to XMPPStanza's setters 2011-03-24 18:57:07 +01:00
a972fe397e Properly handle roster items which are in multiple groups. 2011-03-22 00:37:53 +01:00
08e9104a17 Send an error reply for unhandled IQ stanzas. 2011-03-21 21:36:59 +01:00
e71c601cbe Request and handle roster. 2011-03-21 20:51:17 +01:00
456cc295bc Generate unique IDs and free all instance variables on dealloc. 2011-03-21 19:27:01 +01:00
34966a35b5 Fix possible access to uninitialized values. 2011-03-21 19:01:52 +01:00
b836831b03 Make use of class extensions. 2011-03-21 18:05:35 +01:00
88b1e827a8 Add Xcode project. 2011-03-21 17:51:44 +01:00
ae01053f1c Request session and send initial presence in tests. 2011-03-21 16:15:35 +01:00
4eb4d6bc9c Move auth and bound handling to delegate. 2011-03-21 15:44:42 +01:00
b6314ccbc9 Make use of optional protocols. 2011-03-21 14:56:06 +01:00
932d805e95 Improve stanza handling and call delegate for iq, message and presence. 2011-03-17 21:36:04 +01:00
Florian Zeitz
b1439941ba Stop caching authentication mechanisms
We don't need to do that. In fact we had to do additional work.
2011-03-10 22:14:32 +01:00
Florian Zeitz
54ffeac46b Add basic STARTTLS support 2011-03-09 04:32:14 +01:00
954e3e1dda Clean up exceptions.
The description generated by %@ is automatically released, so no need
for an autorelease pool.
2011-02-26 15:13:40 +01:00
c44fefa67c A little cleanup work. Still needs a configure script. 2011-02-25 23:52:29 +01:00
Florian Zeitz
ba13fa3e3a Rename XMPPAuthenticator functions 2011-02-24 22:44:51 +01:00
Florian Zeitz
a97bd9c3a6 Escape SCRAM usernames (authzid and authcid) 2011-02-24 19:51:53 +01:00
Florian Zeitz
d6227ca0a1 Add SCRAM-SHA-1 support
This adds the new base class XMPPAuthenticator and the derived
classes XMPPSCRAMAuth and XMPPPLAINAuth.
They are now used for authentication from within XMPPConnection.

Also adds XMPPAuthFailedException which is thrown in appropriate places.
2011-02-21 04:09:39 +01:00