summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix rest_proxy_call_get_params() API docChristophe Fergeau2013-09-201-3/+4
| | | | | The returned type was wrong as well as who owns the returned memory, which could lead to memory corruption.
* Add RestProxy::ssl-ca-file propertyyChristophe Fergeau2013-09-201-1/+27
| | | | | | This property maps to the SoupSession::ssl-ca-file property, and allows to specify a file that contains the CAs to use to verify the certificates we'll get during a TLS session.
* Detect /etc/ssl/ca-bundle.pem for openSUSE at configure timeChristophe Fergeau2013-09-191-1/+2
| | | | Based on a patch from Federico Mena Quintero for glib-networking
* rest-proxy-call: Include the zero byte added by soup to the payloadRob Bradford2013-07-101-1/+2
| | | | | | | | | In the previous commit the downloading of binary data was fixed - unfortunately this broke the behaviour of downloading textual data where the clients expect a NUL terminated string for the payload. This change makes sure to include the zero byte that soup adds to support this use case and as a result the test suite passes.
* rest-proxy-call: Use memdup, not strdup, as HTTP response data might be binaryJasper St. Pierre2013-07-091-1/+1
| | | | | This fixes an issue when a GSoC student was trying to fetch images from gravatar using librest.
* Add marshaller for RestProxy::authenticate signalChristophe Fergeau2013-07-053-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
* Fix compilation with older glibsChristophe Fergeau2013-06-285-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
* call: disconnect GCancellable 'cancel' signalAlban Crequy2013-06-172-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
* Add example for twitter image uploadTimm Bäder2013-02-194-1/+106
| | | | The examples creates a new tweet and also uploads a simple image
* Support multipart/form-data requests in OAuthProxyCallTimm Bäder2013-02-191-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.
* oauth: fix typo in method nameRoss Burton2012-12-024-6/+18
|
* build: Fix previous commitColin Walters2012-08-221-1/+1
| | | | Need to use #ifdef here, not #if.
* Do not set REST_SYSTEM_CA_FILE session attribute while building with ↵Javier Hernández2012-08-221-0/+2
| | | | --without-ca-certificates
* build: minor version bump to .90 to reflect beta status0.7.90Ross Burton2012-08-141-1/+1
|
* Propagate RestProxyAuth object in ::authenticate signalChristophe Fergeau2012-06-282-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
* Add rest_proxy_auth_[un]pauseChristophe Fergeau2012-06-283-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
* Introduce RestProxyAuth typeChristophe Fergeau2012-06-284-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
* Add RestProxy::authenticate signalChristophe Fergeau2012-06-282-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
* Revert "Use HMAC glib implementation instead of rolling our own"Christophe Fergeau2012-06-288-5/+140
| | | | | This reverts commit 2a8dac4cc7aeca25b182bb9806ddb1881f2f4994. Pushed by mistake...
* Use HMAC glib implementation instead of rolling our ownChristophe Fergeau2012-06-178-140/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658725
* Accept -1 len in rest_xml_parser_parse_from_dataChristophe Fergeau2012-06-171-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
* introspection: add info about C headers to useChristophe Fergeau2012-06-162-0/+5
| | | | | | | vapigen needs this information to be able to generate correct .vapi files. https://bugzilla.gnome.org/show_bug.cgi?id=678153
* Drop obsolete g_thread_init()Martin Pitt2012-06-1618-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
* autogen.sh: support calling from out of treeChristophe Fergeau2012-06-161-3/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=667572
* Don't leak RestProxyCall::urlChristophe Fergeau2012-06-131-0/+2
| | | | It's not freed when the call object is destroyed
* Allow to disable libsoup strict SSL checkChristophe Fergeau2012-06-081-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
* Avoid infinite loop with wrong HTTP credentialsChristophe Fergeau2012-06-071-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
* rest-extras: various introspection fixesEvan Nemerson2012-05-284-6/+28
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676991
* assorted introspection fixesEvan Nemerson2012-05-036-13/+29
| | | | Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=675213
* rest-param: register RestParam as boxed type.Evan Nemerson2012-05-032-0/+6
|
* rest-xml-node: skip ref/unref() methods in introspectionDanielle Madeley2012-03-271-2/+2
| | | | They're not needed in introspected languages.
* rest-proxy-call: enforce one-shot use, clean up memory lifecycleRoss Burton2012-03-271-36/+15
|
* rest-proxy: add some basic documentationRoss Burton2012-03-271-0/+9
|
* Rename rest_proxy_call_call_async to rest_proxy_call_invoke_asyncRoss Burton2012-03-272-18/+18
|
* rest-proxy-call: add rest_proxy_call_call_async()Danielle Madeley2012-03-273-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().
* Don't leak ->url in rest_proxy_call_sync (#669764)Ross Burton2012-02-241-0/+3
|
* build: generate .pc files at build timeRob Staudinger2012-02-101-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
* autogen.sh: Honor NOCONFIGURE=1Colin Walters2012-01-181-1/+5
| | | | See http://people.gnome.org/~walters/docs/build-api.txt
* add username/password supportMarc-André Lureau2011-12-082-3/+95
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658937
* build: Post-release version bumpRob Bradford2011-11-101-1/+1
|
* proxy: Force all SSL certificates to be trustedlibrest-0.7.12Rob Bradford2011-11-101-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
* build: Detect CA file locationRob Bradford2011-11-101-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
* Fix source URL in configure.acRoss Burton2011-11-041-1/+1
|
* build: Post-release version bumpRob Bradford2011-10-271-1/+1
|
* misc: Remove NEWS file - we don't use itlibrest-0.7.11Rob Bradford2011-10-271-6/+0
|
* build: Link examples against gthread explicitlyEmmanuele Bassi2011-10-261-2/+2
|
* gitignore: Ignore glib-mkenums generated filesDamien Lespiau2011-09-051-0/+3
|
* build: Make libtool generate DLLs on windowsDamien Lespiau2011-09-052-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.
* build: Make it possible to autogen without gtk-docDamien Lespiau2011-09-052-1/+14
| | | | | On Windows, I don't want to go through installing gtk-doc just to get some DLLs compiled.
* build: Add ${ACLOCAL_FLAGS} to ACLOCAL_AMFLAGSDamien Lespiau2011-09-051-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)