| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
The returned type was wrong as well as who owns the returned memory,
which could lead to memory corruption.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Based on a patch from Federico Mena Quintero for glib-networking
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This fixes an issue when a GSoC student was trying to fetch images from
gravatar using librest.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
The examples creates a new tweet and also uploads a simple image
|
|
|
|
|
| |
If the user uploads a file using a multipart/form-data request,
the that parameter must not be used to encode the request.
|
| |
|
|
|
|
| |
Need to use #ifdef here, not #if.
|
|
|
|
| |
--without-ca-certificates
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This reverts commit 2a8dac4cc7aeca25b182bb9806ddb1881f2f4994.
Pushed by mistake...
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=658725
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
vapigen needs this information to be able to generate correct
.vapi files.
https://bugzilla.gnome.org/show_bug.cgi?id=678153
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=667572
|
|
|
|
| |
It's not freed when the call object is destroyed
|
|
|
|
|
|
|
| |
This is needed in order to access REST services over https using
self-signed certificates.
https://bugzilla.gnome.org/show_bug.cgi?id=663786
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=676991
|
|
|
|
| |
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=675213
|
| |
|
|
|
|
| |
They're not needed in introspected languages.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
See http://people.gnome.org/~walters/docs/build-api.txt
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=658937
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
On Windows, I don't want to go through installing gtk-doc just to get some
DLLs compiled.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|