aboutsummaryrefslogtreecommitdiffstats
path: root/modules/online-accounts
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-07-01 12:07:26 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-13 23:27:51 +0800
commitf59681796df8fe0138a1754abbe8ec781bc1535e (patch)
tree0ced0c119ffed095713d7f64732686df9b2d9152 /modules/online-accounts
parentbf4a1a13e3295deefc4031a446627ff9b1c95c7a (diff)
downloadgsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.gz
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.bz2
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.lz
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.xz
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.tar.zst
gsoc2013-evolution-f59681796df8fe0138a1754abbe8ec781bc1535e.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'modules/online-accounts')
-rw-r--r--modules/online-accounts/camel-sasl-xoauth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/online-accounts/camel-sasl-xoauth.c b/modules/online-accounts/camel-sasl-xoauth.c
index 9ce391214d..14ecb29bc4 100644
--- a/modules/online-accounts/camel-sasl-xoauth.c
+++ b/modules/online-accounts/camel-sasl-xoauth.c
@@ -73,7 +73,7 @@ hmac_sha1 (const gchar *key,
guchar inner[SHA1_LENGTH];
guchar digest[SHA1_LENGTH];
gsize key_length, inner_length, digest_length;
- int i;
+ gint i;
g_return_val_if_fail (key, NULL);
g_return_val_if_fail (message, NULL);
@@ -86,7 +86,7 @@ hmac_sha1 (const gchar *key,
key_length = sizeof (new_key);
- g_checksum_update (checksum, (guchar*)key, strlen (key));
+ g_checksum_update (checksum, (guchar *) key, strlen (key));
g_checksum_get_digest (checksum, new_key, &key_length);
g_checksum_reset (checksum);
@@ -117,7 +117,7 @@ hmac_sha1 (const gchar *key,
/* Stage 3 and 4 */
g_checksum_update (checksum, ipad, sizeof (ipad));
- g_checksum_update (checksum, (guchar*)message, strlen (message));
+ g_checksum_update (checksum, (guchar *) message, strlen (message));
inner_length = sizeof (inner);
g_checksum_get_digest (checksum, inner, &inner_length);
g_checksum_reset (checksum);
@@ -135,7 +135,7 @@ hmac_sha1 (const gchar *key,
return g_base64_encode (digest, digest_length);
}
-static char *
+static gchar *
sign_plaintext (const gchar *consumer_secret,
const gchar *token_secret)
{
@@ -153,7 +153,7 @@ sign_plaintext (const gchar *consumer_secret,
return rv;
}
-static char *
+static gchar *
sign_hmac (const gchar *consumer_secret,
const gchar *token_secret,
const gchar *http_method,