From 4a5d88504235e1df5d01a3a5701b83dd82d6695d Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 26 Jul 2011 12:58:38 +0100 Subject: Working OAuth2 support. Needs some more debugging (error handling is not great and imc_logout() gets (rightfully) confused when jabber_data is empty). --- lib/oauth.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/oauth.h') diff --git a/lib/oauth.h b/lib/oauth.h index 8270a545..5c4ef4b0 100644 --- a/lib/oauth.h +++ b/lib/oauth.h @@ -91,4 +91,7 @@ char *oauth_to_string( struct oauth_info *oi ); struct oauth_info *oauth_from_string( char *in, const struct oauth_service *sp ); /* For reading misc. data. */ +void oauth_params_add( GSList **params, const char *key, const char *value ); +void oauth_params_free( GSList **params ); +char *oauth_params_string( GSList *params ); const char *oauth_params_get( GSList **params, const char *key ); -- cgit v1.2.3 From aa9f1acec3f941cbb6b9fa716db1e775e88005c2 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 31 Jul 2011 15:51:07 +0100 Subject: Export oauth_params_parse(). --- lib/oauth.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oauth.h') diff --git a/lib/oauth.h b/lib/oauth.h index 5c4ef4b0..b7388503 100644 --- a/lib/oauth.h +++ b/lib/oauth.h @@ -92,6 +92,7 @@ struct oauth_info *oauth_from_string( char *in, const struct oauth_service *sp ) /* For reading misc. data. */ void oauth_params_add( GSList **params, const char *key, const char *value ); +void oauth_params_parse( GSList **params, char *in ); void oauth_params_free( GSList **params ); char *oauth_params_string( GSList *params ); const char *oauth_params_get( GSList **params, const char *key ); -- cgit v1.2.3 From 36533bf6bfc01f56afd6a8cd7bd3dfa9de87297b Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 19 Dec 2011 13:54:49 +0100 Subject: When updating the XMPP password field with OAuth data, try harder to preserve existing data. (Like refresh tokens which we'll need again on next login.) --- lib/oauth.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oauth.h') diff --git a/lib/oauth.h b/lib/oauth.h index b7388503..50adc95c 100644 --- a/lib/oauth.h +++ b/lib/oauth.h @@ -95,4 +95,5 @@ void oauth_params_add( GSList **params, const char *key, const char *value ); void oauth_params_parse( GSList **params, char *in ); void oauth_params_free( GSList **params ); char *oauth_params_string( GSList *params ); +void oauth_params_set( GSList **params, const char *key, const char *value ); const char *oauth_params_get( GSList **params, const char *key ); -- cgit v1.2.3