Differences From Artifact [0f39082dfe]:
- File src/XMPPPLAINAuth.m — part of check-in [fb7805c61b] at 2011-09-12 20:08:45 on branch trunk — Update to recent ObjFW changes. (user: js, size: 2446) [annotate] [blame] [check-ins using]
To Artifact [3b4c3d710b]:
- File
src/XMPPPLAINAuth.m
— part of check-in
[0aab2fde67]
at
2011-09-18 19:33:19
on branch trunk
— 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. (user: florob@babelmonkeys.de, size: 2143) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
40 41 42 43 44 45 46 | password: (OFString*)password { return [[[self alloc] initWithAuthzid: authzid authcid: authcid password: password] autorelease]; } | | | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | password: (OFString*)password { return [[[self alloc] initWithAuthzid: authzid authcid: authcid password: password] autorelease]; } - (OFDataArray*)initialMessage { OFDataArray *message = [OFDataArray dataArrayWithItemSize: 1]; /* authzid */ if (authzid) [message addItem: authzid]; |
︙ | ︙ | |||
64 65 66 67 68 69 70 | /* passwd */ [message addNItems: [password UTF8StringLength] fromCArray: [password UTF8String]]; return message; } | < < < < < < < < < < < < < | 64 65 66 67 68 69 70 71 | /* passwd */ [message addNItems: [password UTF8StringLength] fromCArray: [password UTF8String]]; return message; } @end |