Differences From Artifact [4559cd5da6]:
- File src/XMPPConnection.h — part of check-in [472d585c4a] at 2011-02-16 20:12:01 on branch trunk — Add license. (user: js, size: 2907) [annotate] [blame] [check-ins using]
To Artifact [1b5e581e8a]:
- File
src/XMPPConnection.h
— 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: 2965) [annotate] [blame] [check-ins using]
︙ | |||
24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | + | #import <ObjFW/ObjFW.h> @class XMPPConnection; @class XMPPJID; @class XMPPIQ; @class XMPPMessage; @class XMPPPresence; @class XMPPAuthenticator; @protocol XMPPConnectionDelegate - (void)connectionWasClosed: (XMPPConnection*)conn; - (void)connection: (XMPPConnection*)conn didReceiveIQ: (XMPPIQ*)iq; - (void)connection: (XMPPConnection*)conn didReceivePresence: (XMPPPresence*)pres; |
︙ | |||
59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | + | XMPPJID *JID; /// The port to connect to short port; /// Whether to use TLS BOOL useTLS; id <XMPPConnectionDelegate> delegate; OFMutableArray *mechanisms; XMPPAuthenticator *authModule; } @property (copy) OFString *username; @property (copy) OFString *password; @property (copy) OFString *server; @property (copy) OFString *resource; @property (copy, readonly) XMPPJID *JID; |
︙ |