Commit graph

297 commits

Author SHA1 Message Date
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
Florian Zeitz
a366c2e2ae Fix mechanisms parsing 2011-02-19 23:39:11 +01:00
Florian Zeitz
33d34dc5b1 Adapt tests for checking a stanza's JID 2011-02-19 23:17:39 +01:00
613400a718 Use XMPPJID for from and to. 2011-02-19 17:40:41 +01:00
f3109b1c7a Make XMPPJID conform to OFCopying. 2011-02-19 17:38:25 +01:00
a2cf5e17e7 Make use of -[elementsForName:]. 2011-02-19 17:23:36 +01:00
cfea8d5362 Remove old attributes before adding new ones. 2011-02-19 16:08:57 +01:00
Florian Zeitz
5e8481027e Perform IDNA's ToASCII operation on the server's domain name 2011-02-18 01:56:41 +01:00
Florian Zeitz
bb8d5e5f05 Add docs/ to .hgignore 2011-02-17 12:27:13 +01:00
Florian Zeitz
81ab8eac00 Fix copyright 2011-02-17 00:27:59 +01:00
73d317c41e Add missing -[description] to XMPPStringPrepFailedException. 2011-02-16 23:52:49 +01:00
d517b1d0e8 Use more exceptions. 2011-02-16 23:42:18 +01:00
c61bdf5518 Add .hgignore. 2011-02-16 23:37:43 +01:00
8f4e29a466 Use exceptions. 2011-02-16 23:36:50 +01:00
fa34006321 Add license. 2011-02-16 21:12:01 +01:00
989b07725c The full JID is the bare JID in case there's no resource. 2011-02-16 21:05:57 +01:00
4690b47ae9 Clean up the code. 2011-02-16 21:05:14 +01:00
fa59d3ce32 Use one file per class. 2011-02-16 20:32:39 +01:00
2fa82b833c Make it compile. 2011-02-16 20:23:53 +01:00
Florian Zeitz
e4f7e4b35f Perform SASLPrep on the username and Resourceprep on the resource
The username is not necessarily a nodepart, therefore SASLPrep is more
appropriate than Nodeprep which we had before.
2011-02-15 03:52:16 +01:00
Florian Zeitz
4cd1853729 Add support for requesting a certain resource 2011-02-13 02:07:36 +01:00
Florian Zeitz
6dc9e5e217 Add a class for handling JIDs. 2011-02-13 01:36:25 +01:00
Florian Zeitz
b64ae746e6 Use self for XMPPStanza's init 2011-02-12 17:58:43 +01:00
Florian Zeitz
188528419f Do more checking on handling the resource bind 2011-02-12 01:25:33 +01:00
Florian Zeitz
67ff367558 Add clean target to Makefile 2011-02-12 01:10:26 +01:00
Florian Zeitz
0c7b90ec2d Add some documentation 2011-02-12 01:04:19 +01:00
Florian Zeitz
0e200d99d7 Respectively do Nameprep/SASLPrep on domain name and password 2011-02-11 02:25:15 +01:00
Florian Zeitz
12ec7d5f08 Add a basic folder structure 2011-02-11 02:06:53 +01:00
Florian Zeitz
fb15fbd391 Do Nodeprep on username and add Makefile 2011-02-11 00:59:31 +01:00
Florian Zeitz
4bdf81b429 Add sendStanza to XMPPConnection 2011-02-10 23:46:47 +01:00
Florian Zeitz
3f2a22140e Add/use init functions in the XMPPStanza classes 2011-02-10 23:30:48 +01:00
Florian Zeitz
4e73c4a229 Use int8_t instead of char 2011-02-10 22:11:34 +01:00
Florian Zeitz
c591ca3547 Handle resource binding 2011-02-10 16:36:09 +01:00
Florian Zeitz
31f444510d Add stanza classes XMPPStanza, XMPPIQ, XMPPMessage and XMPPPresence 2011-02-10 03:54:08 +01:00
dde9ac7d85 Initial commit.
Work done by me and Florian Zeitz.
2011-02-08 20:45:21 +01:00