Changeset 4be0e34
- Timestamp:
- 2011-12-19T00:41:40Z (13 years ago)
- Branches:
- master
- Children:
- 36533bf
- Parents:
- bf57cd1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/oauth.c
rbf57cd1 r4be0e34 135 135 136 136 if( params == NULL ) 137 return NULL;137 return; 138 138 139 139 for( l = *params; l; l = n ) -
protocols/jabber/sasl.c
rbf57cd1 r4be0e34 65 65 int sup_plain = 0, sup_digest = 0, sup_gtalk = 0, sup_fb = 0, sup_ms = 0; 66 66 int want_oauth = FALSE; 67 GString *mechs; 67 68 68 69 if( !sasl_supported( ic ) ) … … 83 84 } 84 85 86 mechs = g_string_new( "" ); 85 87 c = node->children; 86 88 while( ( c = xt_find_node( c, "mechanism" ) ) ) … … 97 99 sup_ms = 1; 98 100 101 if( c->text ) 102 g_string_append_printf( mechs, " %s", c->text ); 103 99 104 c = c->next; 100 105 } … … 102 107 if( !sup_plain && !sup_digest && !sup_gtalk && !sup_fb && !sup_ms ) 103 108 { 104 imcb_error( ic, "No known SASL authentication schemes supported" ); 109 imcb_error( ic, "BitlBee does not support any of the offered SASL " 110 "authentication schemes:%s", mechs->str ); 105 111 imc_logout( ic, FALSE ); 112 g_string_free( mechs, TRUE ); 106 113 return XT_ABORT; 107 114 } 115 g_string_free( mechs, TRUE ); 108 116 109 117 reply = xt_new_node( "auth", NULL, NULL ); … … 537 545 ic->acc->pass = g_strdup_printf( "refresh_token=%s", refresh_token ); 538 546 } 547 /* Should do this, but only in the Facebook case where we get an access 548 token that never expires. Shouldn't overwrite a refresh token with 549 an access token. 550 else 551 { 552 g_free( ic->acc->pass ); 553 ic->acc->pass = g_strdup_printf( "access_token=%s", access_token ); 554 } */ 539 555 540 556 g_free( jd->oauth2_access_token );
Note: See TracChangeset
for help on using the changeset viewer.