Differences From Artifact [92e99aa4e3]:
- File src/XMPPSCRAMAuth.h — part of check-in [7bcda1b5e6] at 2011-09-10 14:08:25 on branch trunk — Add support for SCRAM-SHA-1-PLUS (user: florob@babelmonkeys.de, size: 4321) [annotate] [blame] [check-ins using]
To Artifact [5f659bedb7]:
- File
src/XMPPSCRAMAuth.h
— 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: 4474) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
32 33 34 35 36 37 38 39 40 41 42 43 44 45 | Class hashType; OFString *cNonce; OFString *GS2Header; OFString *clientFirstMessageBare; OFDataArray *serverSignature; XMPPConnection *connection; BOOL plusAvailable; } /** * Creates a new autoreleased XMPPSCRAMAuth with an authcid and password. * * \param authcid The authcid to authenticate with * \param password The password to authenticate with | > | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | Class hashType; OFString *cNonce; OFString *GS2Header; OFString *clientFirstMessageBare; OFDataArray *serverSignature; XMPPConnection *connection; BOOL plusAvailable; BOOL authenticated; } /** * Creates a new autoreleased XMPPSCRAMAuth with an authcid and password. * * \param authcid The authcid to authenticate with * \param password The password to authenticate with |
︙ | ︙ | |||
110 111 112 113 114 115 116 117 | - (OFString*)XMPP_genNonce; - (uint8_t*)XMPP_HMACWithKey: (OFDataArray*)key data: (OFDataArray*)data; - (OFDataArray*)XMPP_hiWithData: (OFDataArray *)str salt: (OFDataArray *)salt_ iterationCount: (intmax_t)i; @end | > > | 111 112 113 114 115 116 117 118 119 120 | - (OFString*)XMPP_genNonce; - (uint8_t*)XMPP_HMACWithKey: (OFDataArray*)key data: (OFDataArray*)data; - (OFDataArray*)XMPP_hiWithData: (OFDataArray *)str salt: (OFDataArray *)salt_ iterationCount: (intmax_t)i; - (OFDataArray*)XMPP_parseServerFirstMessage: (OFDataArray*)data; - (OFDataArray*)XMPP_parseServerFinalMessage: (OFDataArray*)data; @end |