summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-07-05Add marshaller for RestProxy::authenticate signalChristophe Fergeau3-2/+21
g_cclosure_marshal_generic() was only introduced in glib 2.30, for older glib we need to specify the marshaller to use. If only NULL is passed, we get a segfault when trying to invoke the signal. https://bugzilla.gnome.org/show_bug.cgi?id=703642
2013-06-28Fix compilation with older glibsChristophe Fergeau5-0/+162
configure.ac requires glib 2.24, but librest is making use of glib functions that were added in later releases (g_clear_object, g_simple_async_report_take_gerror_in_idle, ...). This commit adds reimplementation of these functions which will be used when an older glib is present at build time. glib-compat.[ch] come from spice-gtk. https://bugzilla.gnome.org/show_bug.cgi?id=703103
2013-06-17call: disconnect GCancellable 'cancel' signalAlban Crequy2-4/+20
Without this fix, the call object could be freed before any cancellation. But the 'cancel' callback should not be executed on a freed object. https://bugzilla.gnome.org/show_bug.cgi?id=702483
2013-02-19Add example for twitter image uploadTimm Bäder4-1/+106
The examples creates a new tweet and also uploads a simple image
2013-02-19Support multipart/form-data requests in OAuthProxyCallTimm Bäder1-2/+23
If the user uploads a file using a multipart/form-data request, the that parameter must not be used to encode the request.
2012-12-02oauth: fix typo in method nameRoss Burton4-6/+18
2012-08-22build: Fix previous commitColin Walters1-1/+1
Need to use #ifdef here, not #if.
2012-08-22Do not set REST_SYSTEM_CA_FILE session attribute while building with ↵Javier Hernández1-0/+2
--without-ca-certificates
2012-08-14build: minor version bump to .90 to reflect beta status0.7.90Ross Burton1-1/+1
2012-06-28Propagate RestProxyAuth object in ::authenticate signalChristophe Fergeau2-7/+23
This will make it possible to pause/resume the current call during authentication callbacks to be able to get back to the mainloop to get authentication credentials. https://bugzilla.gnome.org/show_bug.cgi?id=658937
2012-06-28Add rest_proxy_auth_[un]pauseChristophe Fergeau3-0/+42
They can be used in RestProxy::authenticate signals to suspend the current authentication attempt. This allows to get back to the mainloop to get the credentials, and to then rerun the call with the correct credentials. https://bugzilla.gnome.org/show_bug.cgi?id=658937
2012-06-28Introduce RestProxyAuth typeChristophe Fergeau4-0/+199
This will be used by the RestProxy authentication code to be able to "pause" the sending of the current message. This will give applications the opportunity to get back to the main loop to do the authentication work before resuming the current request. https://bugzilla.gnome.org/show_bug.cgi?id=658937
2012-06-28Add RestProxy::authenticate signalChristophe Fergeau2-6/+52
If caught by application, this signal can be used to set the credentials to use when authentication is needed. If not caught, librest behaviour will be unchanged (try to use what the username/password properties were set to first, and don't try to reuse them if this fails). https://bugzilla.gnome.org/show_bug.cgi?id=658937
2012-06-28Revert "Use HMAC glib implementation instead of rolling our own"Christophe Fergeau8-5/+140
This reverts commit 2a8dac4cc7aeca25b182bb9806ddb1881f2f4994. Pushed by mistake...
2012-06-17Use HMAC glib implementation instead of rolling our ownChristophe Fergeau8-140/+5
https://bugzilla.gnome.org/show_bug.cgi?id=658725
2012-06-17Accept -1 len in rest_xml_parser_parse_from_dataChristophe Fergeau1-1/+5
This means that the passed in string is nul-terminated and that rest_xml_parser_parse_from_data should get its length with strlen. https://bugzilla.gnome.org/show_bug.cgi?id=657032
2012-06-16introspection: add info about C headers to useChristophe Fergeau2-0/+5
vapigen needs this information to be able to generate correct .vapi files. https://bugzilla.gnome.org/show_bug.cgi?id=678153
2012-06-16Drop obsolete g_thread_init()Martin Pitt18-18/+1
Since version 2.2 g_type_init() initializes also the thread system so g_thread_init() is not required anymore. It is deprecated since glib 2.31. Bump glib requirement accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=650061
2012-06-16autogen.sh: support calling from out of treeChristophe Fergeau1-3/+12
https://bugzilla.gnome.org/show_bug.cgi?id=667572
2012-06-13Don't leak RestProxyCall::urlChristophe Fergeau1-0/+2
It's not freed when the call object is destroyed
2012-06-08Allow to disable libsoup strict SSL checkChristophe Fergeau1-1/+27
This is needed in order to access REST services over https using self-signed certificates. https://bugzilla.gnome.org/show_bug.cgi?id=663786
2012-06-07Avoid infinite loop with wrong HTTP credentialsChristophe Fergeau1-1/+2
When provided with wrong credentials, libsoup will try to connect and emit its 'authenticate' signal as long as its callback calls soup_auth_authenticate. It will fail the request and report to the caller if this function is not called. Since the 'retrying' parameter to the 'authenticate' callback lets us know when the credentials we provided are the wrong ones, this commit makes sure we stop calling soup_auth_authenticate after trying the credentials once. Without this, libsoup will try the same request again and again without ever returning when provided with wrong credentials. https://bugzilla.gnome.org/show_bug.cgi?id=658937
2012-05-28rest-extras: various introspection fixesEvan Nemerson4-6/+28
https://bugzilla.gnome.org/show_bug.cgi?id=676991
2012-05-03assorted introspection fixesEvan Nemerson6-13/+29
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=675213
2012-05-03rest-param: register RestParam as boxed type.Evan Nemerson2-0/+6
2012-03-27rest-xml-node: skip ref/unref() methods in introspectionDanielle Madeley1-2/+2
They're not needed in introspected languages.
2012-03-27rest-proxy-call: enforce one-shot use, clean up memory lifecycleRoss Burton1-36/+15
2012-03-27rest-proxy: add some basic documentationRoss Burton1-0/+9
2012-03-27Rename rest_proxy_call_call_async to rest_proxy_call_invoke_asyncRoss Burton2-18/+18
2012-03-27rest-proxy-call: add rest_proxy_call_call_async()Danielle Madeley3-4/+124
This is a GIO-style async function which is much easier to introspect. Should consider deprecating rest_proxy_call_async() and rest_proxy_call_cancel().
2012-02-24Don't leak ->url in rest_proxy_call_sync (#669764)Ross Burton1-0/+3
2012-02-10build: generate .pc files at build timeRob Staudinger1-0/+2
The pkg-config files for librest would only be generated on install time, which breaks the android port, pulling things from the build tree. Add a dependency for the .pc files on all-local, so they are create already when building. See https://bugs.freedesktop.org/show_bug.cgi?id=45855
2012-01-18autogen.sh: Honor NOCONFIGURE=1Colin Walters1-1/+5
See http://people.gnome.org/~walters/docs/build-api.txt
2011-12-08add username/password supportMarc-André Lureau2-3/+95
https://bugzilla.gnome.org/show_bug.cgi?id=658937
2011-11-10build: Post-release version bumpRob Bradford1-1/+1
2011-11-10proxy: Force all SSL certificates to be trustedlibrest-0.7.12Rob Bradford1-0/+10
By setting the CA file we make it a certificate error if the certificate is self-signed. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=663783
2011-11-10build: Detect CA file locationRob Bradford1-0/+24
It will autodetect and also allow the setting of the CA file by a configure option. This code was stolen from glib-networking's configure.ac Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=663783
2011-11-04Fix source URL in configure.acRoss Burton1-1/+1
2011-10-27build: Post-release version bumpRob Bradford1-1/+1
2011-10-27misc: Remove NEWS file - we don't use itlibrest-0.7.11Rob Bradford1-6/+0
2011-10-26build: Link examples against gthread explicitlyEmmanuele Bassi1-2/+2
2011-09-05gitignore: Ignore glib-mkenums generated filesDamien Lespiau1-0/+3
2011-09-05build: Make libtool generate DLLs on windowsDamien Lespiau2-0/+2
libtool needs -no-undefined to generate DLLs on windows. As that flag can't hurt (on the contrary) for other platforms, just add it to the LDFLAGS.
2011-09-05build: Make it possible to autogen without gtk-docDamien Lespiau2-1/+14
On Windows, I don't want to go through installing gtk-doc just to get some DLLs compiled.
2011-09-05build: Add ${ACLOCAL_FLAGS} to ACLOCAL_AMFLAGSDamien Lespiau1-1/+1
ACLOCAL_FLAGS allow you to define extra directories to look for m4 macros. autoreconf parses Makefile.am to add ACLOCAL_AMFLAGS when invoking aclocal. Adding ${ACLOCAL_FLAGS} to ACLOCAL_AMFLAGS make autoreconf grab flags from the environment. librest already had something to deal with it in autogen.sh, however having it in autogen.sh does not help when regenerating the configure script automatically (as automake now has rules to rebuild configure whenever configure.ac changes, ie by-passing autogen.sh)
2011-09-05oauth-proxy: Fix format string warningDamien Lespiau1-1/+1
gcc complains about %lli here. Glib happens to define convinience macros around gint64, let's use them.
2011-07-11oauth: Add property for signature typeRoss Burton1-1/+14
2011-07-11oauth: Add GType for OAuthSignatureMethod enumRoss Burton2-0/+21
2011-07-11build: Generate GLib enum typesRoss Burton1-1/+33
2011-07-11build: Check for glib-mkenumsRoss Burton1-0/+2