diff options
Diffstat (limited to 'rest/oauth-proxy-call.c')
-rw-r--r-- | rest/oauth-proxy-call.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rest/oauth-proxy-call.c b/rest/oauth-proxy-call.c index c9d1ecd..d8cff95 100644 --- a/rest/oauth-proxy-call.c +++ b/rest/oauth-proxy-call.c @@ -26,6 +26,7 @@ #include "oauth-proxy-call.h" #include "oauth-proxy-private.h" #include "rest-proxy-call-private.h" +#include "sha1.h" G_DEFINE_TYPE (OAuthProxyCall, oauth_proxy_call, REST_TYPE_PROXY_CALL) @@ -162,9 +163,8 @@ sign_hmac (OAuthProxy *proxy, RestProxyCall *call, GHashTable *oauth_params) /* PLAINTEXT signature value is the HMAC-SHA1 key value */ key = sign_plaintext (priv); - signature = g_compute_hmac_for_string (G_CHECKSUM_SHA1, - (guchar *)key, strlen (key), - text->str, -1); + signature = hmac_sha1 (key, text->str); + g_free (key); g_string_free (text, TRUE); |