Differences From Artifact [14bbbb67be]:
- File
src/XMPPPLAINAuth.m
— part of check-in
[6a3b0a9988]
at
2011-02-21 03:09:39
on branch trunk
— 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. (user: florob@babelmonkeys.de, size: 2355) [annotate] [blame] [check-ins using]
To Artifact [c67e112e64]:
- File src/XMPPPLAINAuth.m — part of check-in [6b83d2b4d4] at 2011-02-24 21:44:51 on branch trunk — Rename XMPPAuthenticator functions (user: florob@babelmonkeys.de, size: 2358) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
36 37 38 39 40 41 42 | password: (OFString*)password { return [[[self alloc] initWithAuthzid: authzid authcid: authcid password: password] autorelease]; } | | | | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | password: (OFString*)password { return [[[self alloc] initWithAuthzid: authzid authcid: authcid password: password] autorelease]; } - (OFDataArray*)clientFirstMessage { OFDataArray *message = [OFDataArray dataArrayWithItemSize: 1]; /* authzid */ if (authzid) [message addItem: authzid]; /* separator */ [message addItem: ""]; /* authcid */ [message addNItems: [authcid cStringLength] fromCArray: [authcid cString]]; /* separator */ [message addItem: ""]; /* passwd */ [message addNItems: [password cStringLength] fromCArray: [password cString]]; return message; } - (OFDataArray*)calculateResponseWithChallenge: (OFDataArray*)challenge { @throw [XMPPAuthFailedException newWithClass: isa connection: nil reason: @"Received a challenge during PLAIN auth"]; } - (void)parseServerFinalMessage: (OFDataArray*)message { return; } @end |