summaryrefslogtreecommitdiff
path: root/rest/oauth-proxy-call.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-27oauth-proxy-call: Don't leak the parameter names that we stealRob Bradford1-9/+13
2010-08-27oauth-proxy-call: Prevent memory corruption by duplicating dataRob Bradford1-1/+3
2010-07-08oauth: do signing differently when using OAuth EchoRoss Burton1-3/+12
2010-07-08Port the proxies to use RestParamRoss Burton1-15/+31
2010-03-25oauth-proxy-call: Free the list of hash table keysRob Bradford1-5/+5
Fixes the following leak: ==18990== 101,971 (1,048 direct, 100,923 indirect) bytes in 25 blocks are definitely lost in loss record 66 of 73 ==18990== at 0x4C2391E: malloc (vg_replace_malloc.c:207) ==18990== by 0x644E552: g_malloc (gmem.c:131) ==18990== by 0x64643C7: g_slice_alloc (gslice.c:824) ==18990== by 0x6443F7D: g_list_prepend (glist.c:169) ==18990== by 0x64376B8: g_hash_table_get_keys (ghash.c:1306) ==18990== by 0x6C51F4A: _prepare (oauth-proxy-call.c:60) ==18990== by 0x6C4EB25: prepare_message (rest-proxy-call.c:636) ==18990== by 0x6C4F152: rest_proxy_call_async (rest-proxy-call.c:696) ==18990== by 0xB221BDC: online_notify (twitter.c:567) ==18990== by 0xB2224DF: credentials_updated (twitter.c:592) ==18990== by 0x945CE33: gconf_listeners_notify (in /usr/lib/libgconf-2.so.4.1.5) ==18990== by 0x946A97F: (within /usr/lib/libgconf-2.so.4.1.5)
2010-03-24oauth-proxy-call: Free the encoded string that we add to the header stringRob Bradford1-1/+3
This resolves the following leak: ==14633== 848 bytes in 28 blocks are definitely lost in loss record 54 of 75 ==14633== at 0x4C2391E: malloc (vg_replace_malloc.c:207) ==14633== by 0x4C23AA7: realloc (vg_replace_malloc.c:429) ==14633== by 0x644E47D: g_realloc (gmem.c:170) ==14633== by 0x6468353: g_string_maybe_expand (gstring.c:361) ==14633== by 0x64694D9: g_string_sized_new (gstring.c:386) ==14633== by 0x56F6E6F: soup_uri_encode (soup-uri.c:617) ==14633== by 0x6C51D7B: _prepare (oauth-proxy-call.c:162) ==14633== by 0x6C4EB25: prepare_message (rest-proxy-call.c:636) ==14633== by 0x6C4F152: rest_proxy_call_async (rest-proxy-call.c:696) ==14633== by 0xB221BDC: online_notify (twitter.c:563) ==14633== by 0xB2224AF: credentials_updated (twitter.c:588) ==14633== by 0x945CE33: gconf_listeners_notify (in /usr/lib/libgconf-2.so.4.1.5)
2010-03-09Add oauth_proxy_call_parse_token_reponse to parse token responsesRoss Burton1-0/+23
2009-07-31Add some new API to support OAuth 1.0a easilyRoss Burton1-1/+7
2009-07-31When constructing the OAuth header, steal any oauth params that have been setRoss Burton1-0/+24
2009-07-31Delete trailing whitespaceRoss Burton1-1/+1
2009-06-29Fixed Authorization header to only include oauth parametersMatt Wood1-19/+23
Signed-off-by: Ross Burton <ross@linux.intel.com>
2009-05-22Move the OAuth-specific parameters to the Authorized header instead of the ↵Ross Burton1-16/+64
parameters
2009-04-15Add test suite for encode_paramsRoss Burton1-0/+36
2009-04-15Don't check for NULL because the encode function does thatRoss Burton1-1/+1
2009-04-15Make the string encode function NULL-safeRoss Burton1-1/+1
2009-04-15Use correct encoding in HMAC-SHA1 signaturesMatthew Wood1-3/+9
2009-04-15Use the correct encoding when encoding paramtersMatthew Wood1-4/+3
2009-04-15Correctly encode the plaintext signatureMatthew Wood1-1/+12
2009-04-15Add macro for correct OAuth encodingMatthew Wood1-0/+2
2009-04-14Add yet more characters to the encodingRoss Burton1-1/+1
2009-04-14Fix up encodingRoss Burton1-3/+4
2009-04-08Respect the signature methodRoss Burton1-4/+79
2009-01-15Add license header.Rob Bradford1-0/+22
2008-09-18Initial addition of the OAuthProxyRoss Burton1-0/+60