diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-07-01 12:07:26 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:48 +0800 |
commit | ae9db3ed236b0c734fd12c8dc8c99764626bf0b8 (patch) | |
tree | bd45389467f43a96c36172d8a925dd5df041cf5b /modules/online-accounts | |
parent | db969c7f664d0a1d901bedd794b0c7e0762ede33 (diff) | |
download | gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.tar gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.tar.gz gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.tar.bz2 gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.tar.lz gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.tar.xz gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.tar.zst gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'modules/online-accounts')
-rw-r--r-- | modules/online-accounts/camel-sasl-xoauth.c | 10 |
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, |