Ignore:
Timestamp:
2011-12-26T10:51:19Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
199fea6
Parents:
96f954d (diff), 644b808 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging oauth-xmpp branch, which adds support for OAuth2 authentication
against some XMPP services (Google Talk, Facebook and Microsoft's MSN-XMPP
gateway).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    r96f954d r5f40da7  
    4747        JFLAG_XMLCONSOLE = 64,          /* If the user added an xmlconsole buddy. */
    4848        JFLAG_STARTTLS_DONE = 128,      /* If a plaintext session was converted to TLS. */
     49       
     50        JFLAG_SASL_FB = 0x10000,        /* Trying Facebook authentication. */
    4951} jabber_flags_t;
    5052
     
    9294        char *username;         /* USERNAME@server */
    9395        char *server;           /* username@SERVER -=> server/domain, not hostname */
     96        char *me;               /* bare jid */
     97       
     98        const struct oauth2_service *oauth2_service;
     99        char *oauth2_access_token;
    94100       
    95101        /* After changing one of these two (or the priority setting), call
     
    188194
    189195#define JABBER_XMLCONSOLE_HANDLE "xmlconsole"
     196#define JABBER_OAUTH_HANDLE "jabber_oauth"
    190197
    191198/* Prefixes to use for packet IDs (mainly for IQ packets ATM). Usually the
     
    232239#define XMLNS_IBB          "http://jabber.org/protocol/ibb"                      /* XEP-0047 */
    233240
     241/* jabber.c */
     242void jabber_connect( struct im_connection *ic );
     243
    234244/* iq.c */
    235245xt_status jabber_pkt_iq( struct xt_node *node, gpointer data );
     
    300310struct jabber_error *jabber_error_parse( struct xt_node *node, char *xmlns );
    301311void jabber_error_free( struct jabber_error *err );
     312gboolean jabber_set_me( struct im_connection *ic, const char *me );
    302313
    303314extern const struct jabber_away_state jabber_away_state_list[];
     
    316327xt_status sasl_pkt_result( struct xt_node *node, gpointer data );
    317328gboolean sasl_supported( struct im_connection *ic );
     329void sasl_oauth2_init( struct im_connection *ic );
     330int sasl_oauth2_get_refresh_token( struct im_connection *ic, const char *msg );
     331int sasl_oauth2_refresh( struct im_connection *ic, const char *refresh_token );
     332
     333extern const struct oauth2_service oauth2_service_google;
     334extern const struct oauth2_service oauth2_service_facebook;
     335extern const struct oauth2_service oauth2_service_mslive;
    318336
    319337/* conference.c */
Note: See TracChangeset for help on using the changeset viewer.