Commit graph

283 commits

Author SHA1 Message Date
Florian Zeitz
75354159c1 Reorder headers to avoid dependency issues (required for NetBSD) 2012-01-16 23:31:44 +01:00
Florian Zeitz
a433727bd5 Merge XMPP*Callback into a single class 2012-01-06 20:18:33 +01:00
b94a321cfa Use OF_SETTER/OF_GETTER. 2012-01-04 23:25:59 +01:00
Florian Zeitz
2f7b349539 Add capability to register callbacks when sending IQs 2012-01-01 03:42:01 +01:00
7e9672b76f Get rid of a warning. 2011-12-12 00:40:36 +01:00
f48b0ac8cd Eliminate dead code. 2011-12-12 00:39:27 +01:00
fdf33f356a Add a delegate for incoming/outgoing elements. 2011-12-12 00:27:32 +01:00
Florian Zeitz
4aaa754a4d Implement certificate checking. 2011-11-22 23:07:01 +01:00
cfb0c5f9bd Don't retain the delegate to prevent a reference cycle. 2011-10-24 20:32:44 +02:00
5a2f8ac0f4 Make use of -[OFXMLElement setStringValue:]. 2011-10-04 14:54:49 +02:00
df5e8f04b4 Adjust to recent ObjFW changes. 2011-09-23 01:38:03 +02:00
Florian Zeitz
74727c159c Fix XMPPAuthenticator to support non-optimized message flow
While RFC6120 allows and encourages sending data with the success
message it is also legal to send the same data as a challenge and
await an empty response. This rework honors that fact.
2011-09-18 21:33:19 +02:00
Florian Zeitz
64f131641f Fix salt generation code 2011-09-16 15:11:54 +02:00
616aa8b9cd Make it possible to require TLS. 2011-09-14 22:09:46 +02:00
7c35be965c Update to recent ObjFW changes. 2011-09-12 22:08:45 +02:00
Florian Zeitz
7b07a24ec4 Remove obsolete comment 2011-09-10 20:24:38 +02:00
1f0ba6b533 Use an OFSet for mechanisms. 2011-09-10 18:17:35 +02:00
Florian Zeitz
62d2bd2ba5 Add support for SCRAM-SHA-1-PLUS 2011-09-10 16:08:25 +02:00
b24c7500fd Fix broken enum used as a bitmap. 2011-09-10 00:10:16 +02:00
2901e13cd5 Prevent a possible leak. 2011-09-09 16:42:39 +02:00
Florian Zeitz
f5559cb3e5 Optimize HMAC implementation 2011-09-09 03:42:33 +02:00
a85826c6ce Adjust to recent ObjFW changes. 2011-08-04 18:59:01 +02:00
b9f214e320 Handle any failure to get SRV records like there are none. 2011-06-16 21:00:28 +02:00
Florian Zeitz
de9b58c4a6 Don't connect to any address record if SRV records exist 2011-06-16 20:28:52 +02:00
Florian Zeitz
393e75930b Catch the case where the domain exists, but SRV records don't 2011-06-16 20:26:34 +02:00
825ee7c81f Adjust to API change. 2011-06-05 22:07:51 +02:00
Florian Zeitz
0761f45bf4 Don't throw an exception if SRV records don't exist 2011-05-27 16:52:27 +02:00
Florian Zeitz
901108dd1c Separate server (where to connect to) and domain (what that server hosts) 2011-05-27 02:17:47 +02:00
ec3e12b62a Check for res_ndestroy. 2011-05-26 22:42:16 +02:00
8af66a155c Fix a warning with GCC. 2011-05-26 22:33:13 +02:00
d15fd9971c Split XMPPSRVEnumerator into XMPPSRVLookup and XMPPSRVEnumerator. 2011-05-26 22:23:02 +02:00
1337fdded1 Shorten -[XMPPSRVEnumerator XMPP_addEntry:]. 2011-05-26 18:52:27 +02:00
53a2499381 Fix accumulatedWeight and iterate priorities in the right order. 2011-05-26 18:38:37 +02:00
9fd6e76322 Get rid of an unnecessary loop.
The loop is not required as we recalculate each entry's
accumulatedWeight on each call, thus there is always an entry that will
be found for the random number.
2011-05-26 00:41:26 +02:00
a04917a128 Correctly handle an empty priority list.
It should not exist, but this is no reason to not terminate.
2011-05-26 00:13:51 +02:00
18ec0d947b Fix XMPPSRVEnumerator by rewriting almost all of it. 2011-05-26 00:08:56 +02:00
5b9eb619d3 Ignore whitespace elements. 2011-05-26 00:03:39 +02:00
35957ae3c3 Fix completely broken exception handling in -[connect]. 2011-05-24 12:27:21 +02:00
95fe343184 Link against libresolv in .xcodeproj. 2011-05-24 12:25:11 +02:00
ee361fe487 Add files added in last commit to .xcodeproj. 2011-05-24 12:18:54 +02:00
Florian Zeitz
dd4022b99c Add support for SRV records 2011-05-24 03:01:47 +02:00
Florian Zeitz
c52bf728bc Add dealloc for XMPPJID 2011-05-22 23:50:02 +02:00
Florian Zeitz
7d3796c62f Add methods to generate error and result replies for IQ stanzas 2011-05-12 23:04:49 +02:00
39d57946d9 Move namespaces to namespaces.h and add missing files to Xcode project. 2011-05-12 22:51:55 +02:00
d80aa353d3 Fix namespace handling. 2011-05-12 19:49:58 +02:00
1ffd66aa92 Improve +[XMPPStanza stanzaWithElement:]. 2011-04-26 01:04:34 +02:00
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