Differences From Artifact [e5f2fd7299]:
- File
src/XMPPAuthenticator.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: 2420) [annotate] [blame] [check-ins using]
To Artifact [24df938575]:
- File src/XMPPAuthenticator.m — part of check-in [220daa147d] at 2012-01-04 22:25:59 on branch trunk — Use OF_SETTER/OF_GETTER. (user: js, size: 2347) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
37 38 39 40 41 42 43 | - initWithAuthzid: (OFString*)authzid_ authcid: (OFString*)authcid_ password: (OFString*)password_ { self = [super init]; | > | | | > > > > | < < | | < < | | < < | | 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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - initWithAuthzid: (OFString*)authzid_ authcid: (OFString*)authcid_ password: (OFString*)password_ { self = [super init]; @try { authzid = [authzid_ copy]; authcid = [authcid_ copy]; password = [password_ copy]; } @catch (id e) { [self release]; @throw e; } return self; } - (void)dealloc { [authzid release]; [authcid release]; [password release]; [super dealloc]; } - (void)setAuthzid: (OFString*)authzid_ { OF_SETTER(authzid, authzid_, YES, YES) } - (OFString*)authzid { OF_GETTER(authzid, YES) } - (void)setAuthcid: (OFString*)authcid_ { OF_SETTER(authcid, authcid_, YES, YES) } - (OFString*)authcid { OF_GETTER(authcid, YES) } - (void)setPassword: (OFString*)password_ { OF_SETTER(password, password_, YES, YES) } - (OFString*)password { OF_GETTER(password, YES) } - (OFDataArray*)initialMessage { return nil; } - (OFDataArray*)continueWithData: (OFDataArray*)challenge { return nil; } @end |