Dan Winship [Thu, 8 Jul 2004 18:15:37 +0000 (18:15 +0000)]
Basic SOAP test, using Aonaware's SOAP->DICT gateway
2004-07-08 Dan Winship <danw@novell.com>
* tests/dict.c: Basic SOAP test, using Aonaware's SOAP->DICT
gateway
2004-07-07 Fernando Herrera <fherrera@onirica.com>
* libsoup/soup-soap-response.c: (finalize), (init),
(soup_soap_response_from_string): Use a parse context for the
xml document, so we can safely use the option to ignore
blank spaces and '\n'.
Dan Winship [Wed, 7 Jul 2004 15:27:24 +0000 (15:27 +0000)]
if the protocol is http or https, require a hostname. For #61049
* libsoup/soup-uri.c (soup_uri_new_with_base): if the protocol is
http or https, require a hostname. For #61049
* tests/uri-parsing.c (rel_tests, do_uri): Update for that
Dan Winship [Wed, 9 Jun 2004 15:25:59 +0000 (15:25 +0000)]
updated todo ideas
JP Rosevear [Thu, 3 Jun 2004 13:53:05 +0000 (13:53 +0000)]
bump version to 2.1.11, libtool number
2004-06-03 JP Rosevear <jpr@novell.com>
* configure.in: bump version to 2.1.11, libtool number
Dan Winship [Wed, 2 Jun 2004 14:07:23 +0000 (14:07 +0000)]
Redo the various IPv4/IPv6-abstracting macros to not use ?: expressions as
* libsoup/soup-address.c: Redo the various IPv4/IPv6-abstracting
macros to not use ?: expressions as lvalues, since that's
apparently a GNU extension.
(soup_address_resolve_async): Use a timeout rather than an idle
handler to poll the dns result. (soup-dns really should be
rewritten to not require polling, but this is easier for now.)
#59240
* libsoup/soup-server.c (call_handler): Don't use GNU-only
non-constant structure initialization
Dan Winship [Wed, 2 Jun 2004 14:07:13 +0000 (14:07 +0000)]
Simple test of the dns code
* tests/dns.c: Simple test of the dns code
* tests/Makefile.am (noinst_PROGRAMS): build it
JP Rosevear [Wed, 19 May 2004 16:57:06 +0000 (16:57 +0000)]
bump version, libtool numbers
2004-05-19 JP Rosevear <jpr@novell.com>
* configure.in (SOUP_API_VERSION): bump version, libtool numbers
Dan Winship [Tue, 18 May 2004 21:57:50 +0000 (21:57 +0000)]
define some GError codes and stuff
* libsoup/soup-ssl.h:
* libsoup/soup-nossl.c: define some GError codes and stuff
* libsoup/soup-gnutls.c: add missing #include <gnutls/x509.h>
(do_handshake): when returning G_IO_STATUS_AGAIN, set the GError
to SOUP_SSL_ERROR_HANDSHAKE_NEEDS_READ or _NEEDS_WRITE
appropriately.
* libsoup/soup-socket.c (soup_socket_write): Handle
SOUP_SSL_ERROR_HANDSHAKE_NEEDS_READ, by setting an io watch for
G_IO_IN instead of G_IO_OUT. Fixes the rcd-sucking-up-all-cpu bug
(#58434)
(read_from_network): Handle the reverse case (which would cause
hanging rather than spinning, and might be the cause of some
connector 1.5 slowness?)
Dan Winship [Tue, 11 May 2004 21:30:31 +0000 (21:30 +0000)]
Do this less kludgefully, using the magic of GClosure, to fix x86_64
* libsoup/soup-misc.c (soup_signal_connect_once): Do this less
kludgefully, using the magic of GClosure, to fix x86_64 problems
reported by snorp.
Sivaiah Nallagatla [Tue, 4 May 2004 15:02:46 +0000 (15:02 +0000)]
free the elements of priv structure before freeing priv
2004-05-04 Sivaiah Nallagatla <snallagatla@novell.com>
* libsoup/soup-soap-message.c (finalize) : free
the elements of priv structure before freeing priv
Dan Winship [Tue, 20 Apr 2004 14:22:36 +0000 (14:22 +0000)]
if re-sending the message, call soup_message_restarted() (send_request):
* libsoup/soup-connection-ntlm.c (ntlm_authorize_post): if
re-sending the message, call soup_message_restarted()
(send_request): Connect to "restarted" signal, and remove the 401
handlers from there; doing it here didn't work because if the
connection was closed, the message would be re-sent on a new
connection, but would still have the handlers from the old
connection attached to it, which would make authentication fail.
* libsoup/soup-message-handlers.c (soup_message_run_handlers):
Copy the handler list before starting, to protect against handlers
that modify the handler list.
Dan Winship [Thu, 15 Apr 2004 17:33:23 +0000 (17:33 +0000)]
Connect to the socket's "disconnect" signal. (We were only doing this from
* libsoup/soup-connection.c (soup_connection_connect_sync):
Connect to the socket's "disconnect" signal. (We were only doing
this from the async version before, which meant that synchronous
SoupConnections could outlive their sockets and start causing
errors.) #57004
* libsoup/soup-connection-ntlm.c (send_request): Remove the old
Authorization header before adding a new one.
JP Rosevear [Fri, 2 Apr 2004 16:26:42 +0000 (16:26 +0000)]
bump version, libtool number
2004-04-02 JP Rosevear <jpr@ximian.com>
* configure.in: bump version, libtool number
Dan Winship [Mon, 15 Mar 2004 21:50:53 +0000 (21:50 +0000)]
Fix up types to kill a warning with -Wall -O2
* libsoup/soup-soap-message.c (soup_soap_message_persist): Fix up
types to kill a warning with -Wall -O2
JP Rosevear [Fri, 5 Mar 2004 18:34:58 +0000 (18:34 +0000)]
bump version, libtool number
2004-03-05 JP Rosevear <jpr@ximian.com>
* configure.in: bump version, libtool number
Dan Winship [Tue, 2 Mar 2004 18:26:42 +0000 (18:26 +0000)]
Only loop on EINTR if bytes_read is -1, since the value of errno is
* libsoup/soup-dns.c (check_hostent): Only loop on EINTR if
bytes_read is -1, since the value of errno is irrelevant when
bytes_read is 0. Probably #54960.
Rodrigo Moya [Mon, 1 Mar 2004 07:41:47 +0000 (07:41 +0000)]
removed not-implemented function's prototype.
2004-03-01 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.h: removed not-implemented function's
prototype.
Rodney Dawes [Fri, 27 Feb 2004 16:15:01 +0000 (16:15 +0000)]
Use a different variable for linking to the static version of gnutls, so
2004-02-27 Rodney Dawes <dobey@ximian.com>
* configure.in:
* libsoup/Makefile.am: Use a different variable for linking to the
static version of gnutls, so we don't pull the .a files into the .pc
Fixes #53346
Dan Winship [Fri, 20 Feb 2004 14:54:49 +0000 (14:54 +0000)]
Pass gsize *, not guint *, to soup_socket_read/write, to make this work on
* libsoup/soup-message-io.c (read_metadata, read_body_chunk,
write_data): Pass gsize *, not guint *, to soup_socket_read/write,
to make this work on 64-bit platforms. (Grr. C type checking
sucks.) #54631
* tests/revserver.c: Likewise
Dan Winship [Fri, 20 Feb 2004 03:09:52 +0000 (03:09 +0000)]
update this a bunch
Rodrigo Moya [Wed, 18 Feb 2004 15:00:34 +0000 (15:00 +0000)]
Fixes #54512
2004-02-18 Rodrigo Moya <rodrigo@ximian.com>
Fixes #54512
* libsoup/soup-soap-response.c (soup_soap_parameter_get_int_value):
don't leak the value returned from xmlNodeGetContent().
(soup_soap_parameter_get_string_value,
soup_soap_parameter_get_property): return a g_strdup'ed
string, not the value returned by xmlNodeGetContent, so that
callers can use g_free, and not xmlFree.
* libsoup/soup-soap-response.h: made soup_parameter_get_property
not return const.
Dan Winship [Wed, 18 Feb 2004 14:19:44 +0000 (14:19 +0000)]
Likewise
* libsoup/soup-soap-response.h (SOUP_IS_SOAP_RESPONSE_CLASS):
Likewise
Dan Winship [Tue, 17 Feb 2004 18:09:54 +0000 (18:09 +0000)]
Fix a typo. #54433, from Mariano Suarez-Alvarez.
* libsoup/soup-soap-message.h (SOUP_IS_SOAP_MESSAGE_CLASS): Fix a
typo. #54433, from Mariano Suarez-Alvarez.
Rodney Dawes [Tue, 17 Feb 2004 16:51:26 +0000 (16:51 +0000)]
HTTP connections require a hostname, and we also hash on the host for
2004-02-17 Rodney Dawes <dobey@ximian.com>
* libsoup/soup-message.c (soup_message_new): HTTP connections require
a hostname, and we also hash on the host for message queueing in the
session, if the host is NULL we free the SoupUri and return NULL
Dan Winship [Sat, 14 Feb 2004 20:37:04 +0000 (20:37 +0000)]
Use POSIX-compliant "test $foo = bar", rather than GNU-only "test $foo ==
* configure.in: Use POSIX-compliant "test $foo = bar", rather than
GNU-only "test $foo == bar". #54354, from Julio M. Merino Vidal.
Joe Shaw [Fri, 13 Feb 2004 01:32:44 +0000 (01:32 +0000)]
Call read() in a do-while loop to prevent DNS errors from short reads.
2004-02-12 Joe Shaw <joe@ximian.com>
* libsoup/soup-dns.c (check_hostent): Call read() in a do-while
loop to prevent DNS errors from short reads.
Joe Shaw [Wed, 11 Feb 2004 16:34:32 +0000 (16:34 +0000)]
Bumped version number to 2.1.7 and libtool current.
2004-02-11 Joe Shaw <joe@ximian.com>
* configure.in: Bumped version number to 2.1.7 and libtool
current.
Dan Winship [Wed, 11 Feb 2004 15:51:54 +0000 (15:51 +0000)]
Update Joe's comment here with a gory explanation of exactly what's going
* libsoup/soup-connection.c (soup_connection_disconnect): Update
Joe's comment here with a gory explanation of exactly what's going
on. (It's not just an SSL bug either, it affects all connections.)
Joe Shaw [Tue, 10 Feb 2004 22:52:15 +0000 (22:52 +0000)]
Add a workaround for SSL connections which time-out but don't close the
2004-02-10 Joe Shaw <joe@ximian.com>
* libsoup/soup-connection.c (soup_connection_disconnect): Add a
workaround for SSL connections which time-out but don't close the
socket until we try sending data again later.
* libsoup/soup-socket.c (soup_socket_connect, soup_socket_listen):
Don't free the sockaddr from soup_address_get_sockaddr(); we don't
own it, the SoupAddress does.
JP Rosevear [Mon, 9 Feb 2004 18:33:51 +0000 (18:33 +0000)]
Bump libtool numbers
2004-02-09 JP Rosevear <jpr@ximian.com>
* configure.in: Bump libtool numbers
Dan Winship [Fri, 6 Feb 2004 14:35:31 +0000 (14:35 +0000)]
Ref the filter when adding it. (soup_session_remove_filter): And unref it
* libsoup/soup-session.c (soup_session_add_filter): Ref the filter
when adding it.
(soup_session_remove_filter): And unref it here (we were already
unreffing it in dispose().)
Joe Shaw [Thu, 5 Feb 2004 22:30:38 +0000 (22:30 +0000)]
Don't try to free the hostent if it's NULL. (soup_dns_entry_check_lookup):
2004-02-05 Joe Shaw <joe@ximian.com>
* libsoup/soup-dns.c (soup_dns_entry_unref): Don't try to free the
hostent if it's NULL.
(soup_dns_entry_check_lookup): If the entry is resolved, but the
hostent is NULL, uncache it.
Dan Winship [Thu, 5 Feb 2004 15:31:45 +0000 (15:31 +0000)]
Always remove the WWW-Authenticate headers before returning, so the
* libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Always
remove the WWW-Authenticate headers before returning, so the
session won't fall back to Basic auth. Also, leave the connection
in the "authenticating" state rather than setting it to
"authenticated".
(ntlm_authorize_post): Only requeue the message if it's in the
"authenticating" state (and set it to "authenticated"). Fixes an
"unepectedly disconnected" error if authentication fails.
Dan Winship [Tue, 3 Feb 2004 21:37:22 +0000 (21:37 +0000)]
Call soup_message_io_stop so we don't get a callback on the io after it's
* libsoup/soup-message-io.c (io_cleanup): Call
soup_message_io_stop so we don't get a callback on the io after
it's been cleaned up.
* libsoup/soup-session.c (add_auth): Only remove the Authorization
header if we have another one to add. (Otherwise it messes up
SoupConnectionNTLM.)
Dan Winship [Tue, 3 Feb 2004 17:16:54 +0000 (17:16 +0000)]
Use memmove rather than memcpy here, since the source and destination will
* libsoup/soup-socket.c (read_from_buf): Use memmove rather than
memcpy here, since the source and destination will overlap if
*nread is small and read_buf->len is large. (Noticed by valgrind,
#53625.)
Joe Shaw [Mon, 2 Feb 2004 18:01:28 +0000 (18:01 +0000)]
Call gnutls_bye() with the GNUTLS_SHUT_WR flag (instead of RDWR) and check
2004-02-02 Joe Shaw <joe@ximian.com>
* libsoup/soup-gnutls.c (soup_gnutls_close): Call gnutls_bye()
with the GNUTLS_SHUT_WR flag (instead of RDWR) and check only for
GNUTLS_E_INTERRUPTED. GNUTLS_E_AGAIN will be returned by recv()
when there are no messages on the wire on a non-blocking socket.
This sends a SSL hangup message and then allows us to immediately
close the socket.
Rodrigo Moya [Fri, 30 Jan 2004 20:05:07 +0000 (20:05 +0000)]
bumped version number to 2.1.6.
2004-01-30 Rodrigo Moya <rodrigo@ximian.com>
* configure.in: bumped version number to 2.1.6.
Rodrigo Moya [Thu, 29 Jan 2004 18:23:25 +0000 (18:23 +0000)]
new function.
2004-01-29 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_property):
new function.
Rodrigo Moya [Thu, 29 Jan 2004 18:14:43 +0000 (18:14 +0000)]
removed 'const' from return type.
2004-01-29 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch]
(soup_soap_parameter_get_string_value): removed 'const' from return
type.
Joe Shaw [Thu, 29 Jan 2004 17:36:57 +0000 (17:36 +0000)]
Initialize the certificate before we try to use it. Ahem.
2004-01-29 Joe Shaw <joe@ximian.com>
* libsoup/soup-gnutls.c (verify_certificate): Initialize the
certificate before we try to use it. Ahem.
Joe Shaw [Mon, 26 Jan 2004 16:51:39 +0000 (16:51 +0000)]
forgot these on friday
Joe Shaw [Wed, 21 Jan 2004 23:10:29 +0000 (23:10 +0000)]
Require at least GnuTLS 1.0.0.
2004-01-21 Joe Shaw <joe@ximian.com>
* configure.in: Require at least GnuTLS 1.0.0.
* libsoup/soup-gnutls.c: Fix the use of deprecated GnuTLS
functions.
(verify_certificate): Use gnutls_x509_crt_import() and
gnutls_x509_crt_check_hostname() instead of
gnutls_x509_check_certificates_hostname().
(init_dh_params): Use gnutls_dh_params_generate2() instead of
gnutls_dh_params_generate() and gnutls_dh_params_set().
Joe Shaw [Tue, 20 Jan 2004 21:18:52 +0000 (21:18 +0000)]
gnutls_bye() doesn't close the socket itself, so we need to do it or else
2004-01-20 Joe Shaw <joe@ximian.com>
* libsoup/soup-gnutls.c (soup_gnutls_close): gnutls_bye() doesn't
close the socket itself, so we need to do it or else our
connections stay in CLOSE_WAIT forever.
Jacob Leach [Mon, 19 Jan 2004 18:30:23 +0000 (18:30 +0000)]
builddir != srcdir fix.
Joe Shaw [Wed, 14 Jan 2004 21:15:07 +0000 (21:15 +0000)]
Remove the check for GNUTLS_CERT_CORRUPTED, it's not in 1.0.x.
2004-01-14 Joe Shaw <joe@ximian.com>
* libsoup/soup-gnutls.c (verify_certificate): Remove the
check for GNUTLS_CERT_CORRUPTED, it's not in 1.0.x.
JP Rosevear [Mon, 12 Jan 2004 16:01:12 +0000 (16:01 +0000)]
bump version and libtool revision
2004-01-12 JP Rosevear <jpr@ximian.com>
* configure.in: bump version and libtool revision
Dan Winship [Mon, 12 Jan 2004 14:55:22 +0000 (14:55 +0000)]
Add a g_thread_init() so this works again.
* tests/simple-httpd.c (main): Add a g_thread_init() so this works
again.
Larry Ewing [Sat, 10 Jan 2004 17:14:32 +0000 (17:14 +0000)]
use LIBGNUTLS_LIBS in the substitution string.
2004-01-10 Larry Ewing <lewing@ximian.com>
* libsoup-2.2.pc.in (Libs): use LIBGNUTLS_LIBS in the substitution
string.
Joe Shaw [Fri, 9 Jan 2004 21:30:04 +0000 (21:30 +0000)]
Include the libgnutls.m4 file.
2004-01-09 Joe Shaw <joe@ximian.com>
* acinclude.m4: Include the libgnutls.m4 file.
* configure.in: Remove manual checking for libgnutls-config and
use the AM_PATH_LIBGNUTLS so we can pass in a minimum required
version, which is 0.9.7 for now.
* libsoup/Makefile.am: Some changes for the above change.
* libsoup/soup-gnutls.c: Check for HAVE_SSL, not
HAVE_GNUTLS_GNUTLS_H.
(verify_certificate): Uncomment the SSL certificate hostname
check.
* libsoup/soup-session.c (set_property): Be smart about flushing
our SSL credentials only when the CA file is set to something
different than it was before.
Harish Krishnaswamy [Fri, 9 Jan 2004 16:14:04 +0000 (16:14 +0000)]
allow soup_soap_response_from_string to ignore header element if present
while forming response objects in soup-soap-response.c
Harish Krishnaswamy [Fri, 9 Jan 2004 16:05:57 +0000 (16:05 +0000)]
added code to soup_soap_response_from_string to ignore header element
while forming response objects, if they are present.
Dan Winship [Mon, 5 Jan 2004 16:25:54 +0000 (16:25 +0000)]
Remove no-longer-relevant socklen_t check
* configure.in: Remove no-longer-relevant socklen_t check
* libsoup/soup-address.c: Reorder #includes for FreeBSD (From Joe
Marcus Clarke, #52566)
* libsoup/soup-dns.c: Likewise
JP Rosevear [Mon, 29 Dec 2003 15:23:03 +0000 (15:23 +0000)]
bump version and libtool number
2003-12-29 JP Rosevear <jpr@ximian.com>
* configure.in: bump version and libtool number
Dan Winship [Mon, 22 Dec 2003 18:49:49 +0000 (18:49 +0000)]
Update these
* README, TODO: Update these
Dan Winship [Mon, 22 Dec 2003 18:09:34 +0000 (18:09 +0000)]
Lots of thread-safety stuff, primarly so you can disconnect a socket from
* libsoup/soup-socket.c: Lots of thread-safety stuff, primarly so
you can disconnect a socket from one thread while doing I/O in
another.
* libsoup/soup-message-io.c (soup_message_io_cancel): Split into
soup_message_io_stop() and io_cleanup(), to separate out the "stop
reading/writing" and "free data" phases to allow thread-safe
synchronous cancellation.
(soup_message_io_finished): call both soup_message_io_stop() and
io_cleanup()
(io_error): Only set SOUP_STATUS_IO_ERROR on the message if it
doesn't already have a transport error status (eg, CANCELLED).
(new_iostate): Call io_cleanup() if needed.
* libsoup/soup-status.h: add "SOUP_STATUS_NONE" for 0, to make it
clearer that it's not a status.
* libsoup/soup-message.c (finalize, restarted, finished,
soup_message_set_uri): s/soup_message_io_cancel/soup_message_io_stop/
(soup_message_cleanup_response): s/0/SOUP_STATUS_NONE/
* libsoup/soup-connection.c (send_request): Remove
soup_message_io_cancel call.
* libsoup/soup-session-sync.c (send_message): Connect to the
connection's "disconnected" signal rather than using a weak ref,
since that's what we really care about, and it's possible that the
connection may have an extra ref on it somewhere that would keep
it from being destroyed even if it was disconnected.
Joe Shaw [Sat, 20 Dec 2003 17:54:59 +0000 (17:54 +0000)]
If const_path is NULL un the non-proxy case, then use the root ("/").
2003-12-20 Joe Shaw <joe@ximian.com>
* libsoup/soup-session.c (lookup_auth): If const_path is NULL un
the non-proxy case, then use the root ("/").
Dan Winship [Fri, 19 Dec 2003 20:54:38 +0000 (20:54 +0000)]
New. An interface for objects that want to act on every message passing
* libsoup/soup-message-filter.c: New. An interface for objects
that want to act on every message passing through a session.
(Initially being used for authentication, but could also be used
for cache handling, cookie management, etc.)
* libsoup/soup-connection.c (class_init, etc): Add a message
filter property.
(send_request): If the connection has a message filter set, run
it on the message before sending it.
(soup_connection_connect_async, etc): When setting up a tunnel, if
we get back a 407 and the session tries to requeue the message,
either re-send it, or return SOUP_STATUS_TRY_AGAIN (depending on
whether or not the proxy closed the connection).
(soup_connection_connect_sync): Likewise
(send_request, request_done): Ref/unref the connection
* libsoup/soup-session.c (soup_session_get_type): Implement the
SoupMessageFilter interface.
(soup_session_get_connection): Use the session as the connection's
message filter
(soup_session_add_filter, soup_session_remove_filter): Add/remove
filters from the session
(setup_message): do auth handling, and call each of the session's
filters' setup_message methods as well.
(soup_session_send_message_via): No longer needed.
(connect_result): Handle SOUP_STATUS_TRY_AGAIN.
* libsoup/soup-session-async.c (run_queue): Use
soup_connection_send_request, since soup_session_send_message_via
is gone now.
* libsoup/soup-session-sync.c (send_message): Likewise
* libsoup/soup-message.c (soup_message_is_keepalive): A successful
response to a CONNECT is always keepalive, even if it's HTTP/1.0
with no Connection header.
* libsoup/soup-status.h: add SOUP_STATUS_TRY_AGAIN
* libsoup/soup-types.h: Add SoupMessageFilter, and macros for
gobject interface types.
* tests/get.c (main): Add a -p flag to specify a proxy
* tests/simple-proxy.c: Fix #includes
Dan Winship [Thu, 18 Dec 2003 21:36:01 +0000 (21:36 +0000)]
Actually disconnect the socket rather than just unreffing it, since the IO
* libsoup/soup-connection.c (soup_connection_disconnect): Actually
disconnect the socket rather than just unreffing it, since the IO
code may be holding an extra ref on it.
(send_request): connect to the "restarted" signal too
(request_restarted): Deal with "Connection: close"
* libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Make this
not go into an infinite loop if the server only supports Basic.
Dan Winship [Wed, 17 Dec 2003 21:18:09 +0000 (21:18 +0000)]
comment out some code that doesn't work currently
Rodrigo Moya [Wed, 17 Dec 2003 20:13:40 +0000 (20:13 +0000)]
install soup-message-queue.h with the rest
2003-12-17 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/Makefile.am: install soup-message-queue.h with the rest
Dan Winship [Wed, 17 Dec 2003 20:01:41 +0000 (20:01 +0000)]
remove some dead code to make this compile
Dan Winship [Wed, 17 Dec 2003 19:49:14 +0000 (19:49 +0000)]
Add gthread to glib check
* configure.in: Add gthread to glib check
* libsoup/soup-session.c: Make this an abstract class.
* libsoup/soup-session-async.c: A SoupSession class for
asynchronous gmain-based operation; replaces the old SoupSession.
* libsoup/soup-session-sync.c: A SoupSession class for synchronous
blocking operation for use with threaded apps.
* libsoup/soup-types.h, libsoup/soup.h: add the new session
subclasses
* libsoup/soup-connection.c (soup_connection_connect_sync): Don't
try to unref the socket if the socket creation fails.
(soup_connection_reserve): New, to explicitly mark a connection as
being in use without queueing a message on it.
* libsoup/soup-dns.c (check_hostent): Oof. Fix the logic of the
"block" flag to not be reversed.
* libsoup/soup-message.c (finished): set status to FINISHED here.
(soup_message_cancel): Gone; needs to be done at the session
level.
* libsoup/soup-message-queue.c: Add a mutex and make all of the
operations thread-safe.
* libsoup/soup-socket.c (disconnect_internal): Make this
thread-safe.
(soup_socket_connect): Make the sync case work correctly.
* libsoup/Makefile.am: add the SoupSession subclasses
* tests/Makefile.am: libsoup depends on libgthread now, so
revserver doesn't need to explicitly.
* tests/get.c, tests/auth-test.c, tests/simple-proxy.c: Use
soup_session_async_new().
Rodrigo Moya [Tue, 16 Dec 2003 17:42:56 +0000 (17:42 +0000)]
new function.
2003-12-16 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_int_value):
new function.
Rodrigo Moya [Tue, 16 Dec 2003 17:42:32 +0000 (17:42 +0000)]
new function.
2003-12-16 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_int_value):
new function.
Joe Shaw [Tue, 16 Dec 2003 17:33:00 +0000 (17:33 +0000)]
Only set up a tunnel if the destination protocol is HTTPS.
2003-12-16 Joe Shaw <joe@ximian.com>
* libsoup/soup-connection.c (socket_connect_result,
soup_connection_connect_sync): Only set up a tunnel if the
destination protocol is HTTPS.
* libsoup/soup-message.c (class_init): Add a default handler for
wrote_body.
(wrote_body): Run the SOUP_HANDLER_POST_REQUEST handlers here.
(soup_message_cancel): Don't set the status to
SOUP_STATUS_CANCELLED and call soup_message_finished() if the
status is already SOUP_MESSAGE_STATUS_FINISHED.
* libsoup/soup-session.c (set_property): Don't cancel the session
if the proxy URI set as a property isn't different from the old
one.
(get_host_for_message): Refactor some code so that we can easily
get the right SoupSessionHost for proxies as well as from the
message.
(authenticate_auth): Take a gboolean proxy parameter. Check it to
see which URI (message URI or proxy URI) to use for
authentication. Add a long comment about lack of clarity in RFC
2617 with respect to proxies and protection spaces.
Dan Winship [Mon, 15 Dec 2003 14:04:14 +0000 (14:04 +0000)]
s/guint/gsize/ to match the definitions in soup-socket.c. #52167.
* libsoup/soup-socket.h (soup_socket_read, soup_socket_read_until,
soup_socket_write): s/guint/gsize/ to match the definitions in
soup-socket.c. #52167.
Rodrigo Moya [Fri, 12 Dec 2003 15:23:04 +0000 (15:23 +0000)]
removed debugging of the messages here.
2003-12-12 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-message.c: removed debugging of the messages here.
Rodrigo Moya [Fri, 12 Dec 2003 13:54:54 +0000 (13:54 +0000)]
added information for SOAP-ENV namespace.
2003-12-12 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-message.c (soup_soap_message_start_envelope):
added information for SOAP-ENV namespace.
Dan Winship [Wed, 10 Dec 2003 18:35:25 +0000 (18:35 +0000)]
if we receive an HTTP/1.0 response to an HTTP/1.1 request, downgrade the
* libsoup/soup-message-client-io.c (parse_response_headers): if we
receive an HTTP/1.0 response to an HTTP/1.1 request, downgrade the
message's http_version so the keep-alive handling is correct.
Fixes a problem noticed almost simultaneously by Rodrigo and Joe.
* libsoup/soup-message.c (soup_message_restarted, etc): Add a
"restarted" signal as suggested by Joe.
* libsoup/soup-message-io.c (soup_message_io_finished): emit
either "restarted" or "finished" as appropriate
* libsoup/soup-session.c (soup_session_queue_message): Connect to
"restarted" and run the queue if a message gets restarted
* libsoup/soup-status.h: Remove a stray comma that gtk-doc doesn't
like.
Tambet Ingo [Wed, 10 Dec 2003 17:45:26 +0000 (17:45 +0000)]
Use autoconfig to check for socklen_t ...
2003-12-10 Tambet Ingo <tambet@ximian.com>
* configure.in: Use autoconfig to check for socklen_t ...
* libsoup/soup-address.c: ... and remove it from here ...
* libsoup/soup-dns.c: ... and here.
Rodrigo Moya [Tue, 9 Dec 2003 17:45:58 +0000 (17:45 +0000)]
print out request/response's contents, if in debug mode.
2003-12-09 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-message.c (soup_soap_message_persist):
(soup_soap_message_parse_response): print out request/response's
contents, if in debug mode.
JP Rosevear [Sun, 7 Dec 2003 18:27:48 +0000 (18:27 +0000)]
Bump version
2003-12-07 JP Rosevear <jpr@ximian.com>
* configure.in: Bump version
Rodrigo Moya [Fri, 28 Nov 2003 11:58:04 +0000 (11:58 +0000)]
new functions to manage SoupSoapParameter's children.
2003-11-28 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch]
(soup_soap_parameter_get_first_child,
soup_soap_parameter_get_first_child_by_name,
soup_soap_parameter_get_next_child,
soup_soap_parameter_get_next_child_by_name): new functions to
manage SoupSoapParameter's children.
(soup_soap_response_get_first_parameter): dont return a GList, but
a SoupSoapParameter contained in the GList.
Rodrigo Moya [Wed, 26 Nov 2003 15:48:59 +0000 (15:48 +0000)]
new function.
2003-11-26 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch]
(soup_soap_parameter_get_string_value): new function.
Rodrigo Moya [Wed, 26 Nov 2003 15:23:37 +0000 (15:23 +0000)]
added SoupSoapParameter structure, to "hide" the usage of xmlNode's.
2003-11-26 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch]: added SoupSoapParameter
structure, to "hide" the usage of xmlNode's.
(soup_soap_parameter_get_name): functions to manage SOAP
response parameters.
(soup_soap_response_get_first_parameter,
soup_soap_response_get_first_parameter_by_name,
soup_soap_response_get_next_parameter,
soup_soap_response_get_next_parameter_by_name):
new functions for an easy access to the response's parameters.
(soup_soap_response_from_string): removed warnings.
Rodrigo Moya [Tue, 25 Nov 2003 22:45:23 +0000 (22:45 +0000)]
fixed typo.
2003-11-25 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.c (soup_soap_response_set_method_name):
fixed typo.
Rodrigo Moya [Tue, 25 Nov 2003 22:05:34 +0000 (22:05 +0000)]
new functions. (finalize): NULL out new private fields.
2003-11-25 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch] (soup_soap_response_get_method_name,
soup_soap_response_set_method_name, soup_soap_message_get_parameters):
new functions.
(finalize): NULL out new private fields.
(soup_soap_response_from_string): added validation code.
Rodrigo Moya [Mon, 24 Nov 2003 17:50:17 +0000 (17:50 +0000)]
new class for managing SOAP responses.
2003-11-23 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-response.[ch]: new class for managing SOAP
responses.
* libsoup/soup-soap-message.[ch] (soup_soap_message_parse_response):
new function.
* libsoup/Makefile.am: added new files.
Rodney Dawes [Tue, 18 Nov 2003 22:17:01 +0000 (22:17 +0000)]
Add gtk-doc.make to cvs for systems without gtk-doc
2003-11-18 Rodney Dawes <dobey@ximian.com>
* gtk-doc.make: Add gtk-doc.make to cvs for systems without gtk-doc
Rodney Dawes [Tue, 18 Nov 2003 21:43:01 +0000 (21:43 +0000)]
Add GTK_DOC_CHECK
2003-11-18 Rodney Dawes <dobey@ximian.com>
* acinclude.m4: Add GTK_DOC_CHECK
Dan Winship [Tue, 18 Nov 2003 20:15:22 +0000 (20:15 +0000)]
Replace old gtk-doc test with GTK_DOC_CHECK() (AC_OUTPUT): add
* configure.in: Replace old gtk-doc test with GTK_DOC_CHECK()
(AC_OUTPUT): add docs/Makefile, docs/reference/Makefile
* autogen.sh (REQUIRED_AUTOMAKE_VERSION): 1.6, for gtk-doc.make
* Makefile.am: updates for gtk-doc
(SUBDIRS): add back "docs"
* docs/Makefile.am (EXTRA_DIST): remove, since those old docs
aren't around any more
* docs/reference/*: set up gtk-doc
* libsoup/Makefile.am (INCLUDES): Change G_LOG_DOMAIN to
"libsoup". Remove unused defines.
* libsoup/soup-connection.c: Fix doc comments
* libsoup/soup-message.c: Likewise
* libsoup/soup-misc.c: Likewise
* libsoup/soup-socket.c: Likewise
* libsoup/soup-uri.c: Likewise
* libsoup/soup-address.h: Fixes to please gtk-doc
* libsoup/soup-connection.h: Likewise
* libsoup/soup-message.h: Likewise
* libsoup/soup-message-private.h: Likewise
* libsoup/soup-misc.h: Likewise
* libsoup/soup-server-auth.h: Likewise
* libsoup/soup-socket.h: Likewise
* libsoup/soup-status.h: Likewise
Dan Winship [Tue, 18 Nov 2003 20:01:00 +0000 (20:01 +0000)]
fix last fix
Dan Winship [Tue, 18 Nov 2003 20:00:08 +0000 (20:00 +0000)]
Change G_LOG_DOMAIN to "libsoup". Remove unused defines.
* libsoup/Makefile.am (INCLUDES): Change G_LOG_DOMAIN to
"libsoup". Remove unused defines.
* libsoup/soup-connection.c: Fix doc comments
* libsoup/soup-message.c: Likewise
* libsoup/soup-misc.c: Likewise
* libsoup/soup-socket.c: Likewise
* libsoup/soup-uri.c: Likewise
* libsoup/soup-address.h: Fixes to please gtk-doc
* libsoup/soup-connection.h: Likewise
* libsoup/soup-message.h: Likewise
* libsoup/soup-message-private.h: Likewise
* libsoup/soup-misc.h: Likewise
* libsoup/soup-server-auth.h: Likewise
* libsoup/soup-socket.h: Likewise
Dan Winship [Tue, 18 Nov 2003 19:31:49 +0000 (19:31 +0000)]
fix
Dan Winship [Tue, 18 Nov 2003 19:11:55 +0000 (19:11 +0000)]
Fix up the SSL checks some. Remove some useless old header checks.
* configure.in: Fix up the SSL checks some. Remove some useless
old header checks.
Dan Winship [Tue, 18 Nov 2003 16:00:21 +0000 (16:00 +0000)]
declare soup_ssl_supported.
* libsoup/soup-misc.h: declare soup_ssl_supported.
* libsoup/soup-gnutls.c: add soup_ssl_supported declaration.
* libsoup/soup-nossl.c: Not an SSL implementation, built if
HAVE_SSL is not defined.
* libsoup/Makefile.am (libsoup_2_2_la_SOURCES): add soup-nossl.c
* libsoup/soup-socket.c (soup_socket_start_ssl): Return success or
failure.
(listen_watch): Deal with soup_socket_start_ssl failing.
* libsoup/soup-connection.c (tunnel_connect_finished,
socket_connect_result, soup_connection_connect_sync): Deal with
the soup_socket_start_ssl failing.
* libsoup/soup-server.c (soup_server_new): Deal with
soup_ssl_get_server_credentials failing
Rodrigo Moya [Tue, 18 Nov 2003 01:28:59 +0000 (01:28 +0000)]
new functions from old SoupSerializer.
2003-11-18 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-message.[ch] (soup_soap_message_start_fault,
soup_soap_message_end_fault, soup_soap_message_start_fault_detail,
soup_soap_message_end_fault_detail, soup_soap_message_start_header,
soup_soap_message_end_header,
soup_soap_message_start_header_element,
soup_soap_message_end_header_element, soup_soap_message_write_int,
soup_soap_message_write_double, soup_soap_message_write_base64,
soup_soap_message_write_time, soup_soap_message_write_string,
soup_soap_message_write_buffer, soup_soap_message_set_element_type,
soup_soap_message_set_null, soup_soap_message_add_attribute,
soup_soap_message_add_namespace,
soup_soap_message_set_default_namespace,
soup_soap_message_get_namespace_prefix,
soup_soap_message_set_encoding_style, soup_soap_message_reset,
soup_soap_message_persist): new functions from old SoupSerializer.
Rodrigo Moya [Mon, 17 Nov 2003 23:14:32 +0000 (23:14 +0000)]
added a bunch of initialization parameters.
2003-11-17 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-message.[ch] (soup_soap_message_new,
soup_soap_message_new_from_uri): added a bunch of initialization
parameters.
(soup_soap_message_get_xml_doc, soup_soap_message_start_envelope,
soup_soap_message_end_envelope, soup_soap_message_start_body,
soup_soap_message_end_body, soup_soap_message_start_element,
soup_soap_message_end_element):
new functions.
* configure.in: depend on libxml-2.0 for the SOAP code.
* libsoup/Makefile.am: use XML CFLAGS and LIBS.
Joe Shaw [Mon, 17 Nov 2003 21:01:52 +0000 (21:01 +0000)]
Add in the --enable-libgpg-error flag from the 2.0 branch.
2003-11-17 Joe Shaw <joe@ximian.com>
* configure.in: Add in the --enable-libgpg-error flag from the 2.0
branch.
* acinclude.m4: Include the gpg-error macros.
Rodrigo Moya [Mon, 17 Nov 2003 19:36:33 +0000 (19:36 +0000)]
new class to make it easier to build SOAP messages.
2003-11-17 Rodrigo Moya <rodrigo@ximian.com>
* libsoup/soup-soap-message.[ch]: new class to make it easier to
build SOAP messages.
* libsoup/Makefile.am: added new files.
* configure.in: increased version number.
Joe Shaw [Fri, 24 Oct 2003 17:15:17 +0000 (17:15 +0000)]
Call soup_dns_entry_get_hostent() on the SoupAddress passed in, not the
2003-10-24 Joe Shaw <joe@ximian.com>
* libsoup/soup-address.c (update_address_from_entry): Call
soup_dns_entry_get_hostent() on the SoupAddress passed in, not the
one in addr->priv->lookup. Fixes a crash on synchronous DNS
lookups.
* libsoup/soup-server.c (soup_server_new): We need to ref the
address we're binding to, because soup_socket_get_local_address()
doesn't ref for us.
Joe Shaw [Fri, 24 Oct 2003 15:01:56 +0000 (15:01 +0000)]
*** empty log message ***
Dan Winship [Thu, 23 Oct 2003 20:23:46 +0000 (20:23 +0000)]
Initialize flags to default values.
* libsoup/soup-socket.c (init): Initialize flags to default
values.
Dan Winship [Tue, 23 Sep 2003 19:35:44 +0000 (19:35 +0000)]
Remove refcounting, but note whether or not the CA file has been loaded.
* libsoup/soup-gnutls.c (SoupGNUTLSCred): Remove refcounting, but
note whether or not the CA file has been loaded.
(SoupGNUTLSChannel): add a "hostname" field.
(verify_certificate): Remove the comment about not being able to
verify the hostname because of soup problems. Now it's because of
GNUTLS problems instead.
(soup_ssl_wrap_iochannel): Renamed from soup_ssl_get_iochannel,
and takes a hostname and a creds argument now.
(soup_ssl_get_client_credentials,
soup_ssl_get_server_credentials): Return client/server credentials
structures.
(soup_ssl_free_client_credentials,
soup_ssl_free_server_credentials): and free them.
* libsoup/soup-session.c (class_init, set_property, get_property):
add ssl_ca_file property
(get_host_for_message): when returning an SSL host for the first
time, create a client credentials structure for the session.
(run_queue): Pass the ssl creds to the new connection. Also fix an
unrelated bug that caused infinite loops on "bad hostname".
* libsoup/soup-server.c: Use GObject properties, including
ssl_cert_file and ssl_key_file properties.
(soup_server_new): Remove "protocol" argument; if the cert file
and key file properties were set, create a server credential
structure from them and pass that to soup_socket_server_new.
* libsoup/soup-connection.c (SoupConnectionPrivate): Rename
dest_uri to origin_uri to match RFC 2616 terminology. Add an
"ssl_creds" field.
(class_init, set_property, get_property): add SSL_CREDS property
(soup_connection_connect_async, soup_connection_connect_sync):
Pass ssl_creds to soup_socket_client_new calls.
* libsoup/soup-socket.c: Use GObject properties, including an
ssl_creds property
(soup_socket_set_flags): Gone (replaced with boolean properties)
(soup_socket_new): Make this take a list of properties
(listen_watch): copy ssl creds from listener to new socket
(soup_socket_start_ssl): Pass remote hostname and socket creds
structure to soup_ssl_wrap_iochannel.
(soup_socket_client_new_async, soup_socket_client_new_sync,
soup_socket_server_new): Replace the SSL boolean with an ssl_creds
structure.
* libsoup/soup-misc.c (soup_set_ssl_ca_file,
soup_set_ssl_cert_files, soup_get_ssl_ca_file,
soup_get_ssl_cert_files): Gone. SSL state is now per-session or
per-server.
* tests/get.c: add a "-c CAfile" argument, for loading a CA
certificate file to validate https connections against
* tests/simple-httpd.c: Add "-c certfile" and "-k keyfile"
arguments for loading an SSL server certificate. Only start an SSL
server if those arguments were used.
* tests/test-cert.pem:
* tests/test-key.pem: SSL certificate for testing simple-httpd
* tests/revserver.c: Update for API changes
* tests/simple-proxy.c: Likewise
Dan Winship [Mon, 22 Sep 2003 20:10:45 +0000 (20:10 +0000)]
Move RESPONSE_BLOCK_SIZE #define here from soup-private.h
* libsoup/soup-message-io.c: Move RESPONSE_BLOCK_SIZE #define here
from soup-private.h
* libsoup/soup-misc.c (soup_load_config, etc): Remove all this.
(soup_set_security_policy, soup_get_security_policy): Remove,
since the GNUTLS backend doesn't actually implement it.
(soup_set_ssl_ca_dir, soup_get_ssl_ca_dir): Likewise
* libsoup/soup-misc.h: sync to soup-misc.c. Don't #include extra
stuff.
* libsoup/soup-types.h (SOUP_MAKE_TYPE): Move this here from
soup-private.h
* libsoup/soup-ssl.h: Merge soup_ssl_get_iochannel and
soup_ssl_get_server_iochannel into a single function that takes a
SoupSSLType.
* libsoup/soup-gnutls.c: Remove soup_get_ssl_ca_dir() reference.
(soup_ssl_get_iochannel): Renamed from soup_gnutls_get_iochannel.
(soup_gnutls_set_security_policy): Gone
* libsoup/soup-gnutls.h
* libsoup/soup-ssl.c: Gone; soup-ssl.h is the #include file for
soup-gnutls.c now
* libsoup/soup-socket.c: Move soup_sockaddr_max
#define here from soup-private.h
(soup_socket_start_ssl): Update for new soup_ssl_get_iochannel
prototype.
* libsoup/soup-private.h: Gone
* libsoup/soup-address.c: Fix #includes for soup-private.h and
soup-misc.h changes
* libsoup/soup-auth-digest.c: Likewise
* libsoup/soup-auth.c: Likewise
* libsoup/soup-connection-ntlm.c: Likewise
* libsoup/soup-connection.c: Likewise
* libsoup/soup-dns.c: Likewise
* libsoup/soup-gnutls.c: Likewise
* libsoup/soup-headers.c: Likewise
* libsoup/soup-message-client-io.c: Likewise
* libsoup/soup-message-handlers.c: Likewise
* libsoup/soup-message-io.c: Likewise
* libsoup/soup-message-server-io.c: Likewise
* libsoup/soup-message.c: Likewise
* libsoup/soup-server-message.c: Likewise
* libsoup/soup-server.c: Likewise
* libsoup/soup-session.c: Likewise
* libsoup/soup-socket.c: Likewise
* tests/auth-test.c: Likewise
Dan Winship [Fri, 19 Sep 2003 16:54:11 +0000 (16:54 +0000)]
free the hostent.
* libsoup/soup-address.c (update_address_from_entry): free the
hostent.
* libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Don't leak
the domain
* libsoup/soup-gnutls.c (soup_gnutls_get_iochannel): Add some more
iochannel initialization. Not sure how this worked before...
* libsoup/soup-message.c (soup_message_cleanup_response): Renamed
from soup_message_prepare (and a few things removed).
* libsoup/soup-message-client-io.c (soup_message_send_request):
s/soup_message_prepare/soup_message_cleanup_response/
* libsoup/soup-message-io.c (io_read): Replace the final "\r\n"
with "\0" on the headers before passing them to the parse
function.
(io_read): Call soup_message_cleanup_response after returning an
informational response so the data doesn't leak.
* libsoup/soup-headers.c (soup_headers_parse): Update for
soup-message-io.c:io_read change
* libsoup/soup-server.c (soup_server_new,
soup_server_new_with_host): Don't leak the SoupAddress.
* libsoup/soup-session.c (class_init): Make PROP_PROXY_URI not
CONSTRUCT_ONLY.
(set_property): If the proxy uri changes, call
soup_session_abort() and cleanup_hosts().
(request_finished, final_finished): Fix a bug when requeuing
messages.
* tests/libsoup.supp: valgrind suppression file for soup tests
* tests/Makefile.am (EXTRA_DIST): dist it.
(noinst_PROGRAMS): move the former check_PROGRAMS to
noinst_PROGRAMS instead.
Dan Winship [Thu, 18 Sep 2003 17:41:29 +0000 (17:41 +0000)]
Add wrote_informational and got_informational signals.
* libsoup/soup-message.c: Add wrote_informational and
got_informational signals.
* libsoup/soup-message-client-io.c (get_request_headers): Set the
EXPECT_CONTINUE flag on the message if that header is set.
* libsoup/soup-message-server-io.c (parse_request_headers):
Likewise
* libsoup/soup-message-io.c (io_write): Set read_state to HEADERS
when blocking on an expect-continue. Emit wrote_informational
instead of wrote_headers in the 1xx case.
(io_read): Set read_state to BLOCKING, not NOT_STARTED after
reading a 100 Continue response. Emit got_informational instead of
got_headers in the 1xx case.
* libsoup/soup-session.c (soup_session_send_message): Reorder
things to deal with the fact that the message could finish right
away if there is a connection available and the server is very
close.
* libsoup/soup-status.h: Rename SOUP_STATUS_CLASS_TRANSPORT to
SOUP_STATUS_CLASS_TRANSPORT_ERROR.
Dan Winship [Wed, 17 Sep 2003 20:21:28 +0000 (20:21 +0000)]
(soup_session_abort): New, to cancel all pending requests.
Dan Winship [Wed, 17 Sep 2003 20:16:51 +0000 (20:16 +0000)]
Fix two bugs (one that pruned too little, one that pruned too much).
* libsoup/soup-session.c (find_oldest_connection): Fix two bugs
(one that pruned too little, one that pruned too much).
(queue_message): When requeuing, don't run the queue;
final_finished will take care of that later.
* libsoup/soup-socket.c (soup_socket_connect, got_address): ref
the socket while waiting for the address to resolve
Dan Winship [Wed, 17 Sep 2003 18:57:46 +0000 (18:57 +0000)]
Replaces the three previous soup_connection_new* functions and uses
* libsoup/soup-connection.c (soup_connection_new): Replaces the
three previous soup_connection_new* functions and uses gobject
properties to set the destination and proxy uris.
(class_init): set up two more signals, authenticate and
reauthenticate.
(soup_connection_send_request): virtualize
(send_request): Default implementation
* libsoup/soup-connection-ntlm.c: New SoupConnection subclass that
also handles NTLM authentication. Includes all of the NTLM code
formerly in soup-auth-ntlm.c.
* libsoup/soup-auth-ntlm.[ch]: Gone.
* libsoup/soup-auth.c: Remove NTLM refs
* libsoup/soup-session.c (class_init): Add gobject properties for
proxy, max_conns, use_ntlm. Change the "authenticate" and
"reauthenticate" signal prototypes to not pass a SoupAuth (so they
can be used for authenticating SoupConnectionNTLM as well, which
doesn't use a SoupAuth).
(soup_session_new): Renamed from soup_session_new_default.
(soup_session_new_with_options): Replaces
soup_session_new_with_proxy and soup_session_new_full. Takes
gobject properties.
(run_queue): Create a new connection of type SoupConnection or
SoupConnectionNTLM depending on our "use_ntlm" property. Connect
to its authenticate and reauthenticate signals.
(connection_authenticate, connection_reauthenticate): proxy these
signals.
* libsoup/soup-address.c (update_address_from_entry): Fix a
crasher when failing to resolve the address.
* libsoup/soup-dns.c (check_hostent): Fix some "how was this
working before" bugs.
* libsoup/soup-message-client-io.c (soup_message_send_request):
call soup_message_prepare() to clean up the existing response
state.
* libsoup/soup-message-io.c (io_error): Set the read_state to DONE
when processing an OK EOF.
* libsoup/soup-status.h (SoupStatusClass): fix the numbering of
these so that SOUP_STATUS_CLASS_SUCCESS is 2, etc.
* tests/auth-test.c (authenticate, reauthenticate): Update for new
prototypes.
(main): Use soup_session_new.
* tests/get.c (main): Likewise.
* tests/simple-proxy.c (main): Likewise.