1 2008-01-15 Dan Winship <danw@gnome.org>
3 * libsoup/soup-auth-manager-ntlm.c: Replaces SoupConnectionNTLM;
4 now works as a SoupSession::request_started watcher.
6 * libsoup/soup-connection.c: remove the no-longer-needed
9 * libsoup/soup-session.c: Use a SoupAuthManagerNTLM if USE_NTLM is
10 set. Remove connection-authenticate-signal references.
12 2008-01-15 Dan Winship <danw@gnome.org>
14 * Merge libsoup-2.4 branch to trunk
16 2008-01-15 Dan Winship <danw@gnome.org>
18 * libsoup/soup-dns.c (resolve_status): Fix the logic here
20 2008-01-15 Dan Winship <danw@gnome.org>
22 * docs/reference/porting-2.2-2.4.xml: add a few more updates
24 2008-01-15 Dan Winship <danw@gnome.org>
26 * libsoup/soup-auth-digest.c: Use GChecksum for MD5
28 * libsoup/soup-md5-utils.[ch]: gone
30 2008-01-15 Dan Winship <danw@gnome.org>
32 * libsoup/soup-server.c (soup_server_run_async):
33 (soup_server_quit): Don't ref/unref the server here. It doesn't
34 match the way other things work. #494128, Mathias Hasselmann.
36 2008-01-14 Dan Winship <danw@gnome.org>
38 * libsoup/soup-address.h:
39 * libsoup/soup-auth-domain-basic.h:
40 * libsoup/soup-auth-domain-digest.h:
41 * libsoup/soup-auth-domain.h:
42 * libsoup/soup-auth.h:
43 * libsoup/soup-logger.h:
44 * libsoup/soup-message.h:
45 * libsoup/soup-server.h:
46 * libsoup/soup-session-async.h:
47 * libsoup/soup-session-sync.h:
48 * libsoup/soup-session.h:
49 * libsoup/soup-socket.h: Add padding for future expansion to class
52 2008-01-14 Dan Winship <danw@gnome.org>
54 * libsoup/soup-uri.c: Add more documentation.
55 (soup_uri_is_https): gone, replaced by SOUP_URI_SCHEME_HTTP /
57 (soup_uri_new): allow passing NULL to get back an "empty" SoupURI.
58 (soup_uri_to_string): rename just_path to just_path_and_query, to
60 (soup_uri_decode, soup_uri_normalize): Change these to return the
61 decoded/normalized string rather than modifying it in place.
62 (soup_uri_set_scheme, etc): provide setters for SoupURI parts.
63 (soup_uri_set_query_from_form): set uri->query via
64 soup_form_encode_urlencoded().
66 2008-01-14 Dan Winship <danw@gnome.org>
68 * configure.in: require glib 2.15.0, and gio
70 * libsoup/soup-dns.c (soup_dns_lookup_resolve)
71 (soup_dns_lookup_resolve_async): Add GCancellables, and support
72 cancellation of DNS lookups.
73 (resolve_address, resolve_name): If we get a DNS failure (eg,
74 because we're disconnected from the network), don't cache that
75 result, just try again next time someone asks. [#508593]
77 * libsoup/soup-address.c (soup_address_resolve_async)
78 (soup_address_resolve_sync): Add GCancellables, pass them to
81 * libsoup/soup-socket.c (soup_socket_connect_async)
82 (soup_socket_connect_sync): Add GCancellables and implement
84 (soup_socket_start_ssl, soup_socket_start_proxy_ssl)
85 (soup_socket_read, soup_socket_read_until, soup_socket_write): add
86 GCancellables, though these routines don't actually implement
88 (soup_socket_disconnect): Don't close() the socket if someone is
89 doing I/O on it, as that creates a race condition. (The fd number
90 might be quickly recycled.) Instead, keep the socket open but
93 2008-01-14 Benjamin Otte <otte@gnome.org>
95 * libsoup/soup-socket.c: (soup_socket_class_init): clarify docs for
96 new-connection signal.
98 2008-01-14 Dan Winship <danw@gnome.org>
100 * tests/test-utils.c: renamed from apache-wrappers and expanded.
101 (test_init): do option parsing and general setup
102 (test_cleanup): print error count and do cleanup
103 (debug_printf): define here rather than in each test, and rename
104 from dprintf [#501631]
105 (soup_test_server_new): create a SoupServer, optionally in its own
106 thread, and clean it up when exiting.
107 (soup_test_session_new): create a SoupSession, optionally with
108 an attached SoupLogger (if requested via command line)
110 * tests/*.c: use test-utils
112 2008-01-13 Dan Winship <danw@gnome.org>
114 * libsoup/soup-logger.c: New HTTP debug logging object. (Based on
115 E2K_DEBUG and its clones.)
117 * libsoup/soup-message.c (soup_message_class_init)
118 (soup_message_add_header_handler)
119 (soup_message_add_status_code_handler): Change things around a
120 little; remove the "requeuing or cancelling the message stops
121 signal emission" rule, and instead make that be a feature of just
122 the header and status code handlers. (Makes the basic signal
123 handlers behave more predictably.)
125 2008-01-11 Dan Winship <danw@gnome.org>
127 * libsoup/soup-auth-domain.c (soup_auth_domain_set_filter):
128 * libsoup/soup-auth-domain-basic.c
129 (soup_auth_domain_basic_set_auth_callback):
130 * libsoup/soup-auth-domain-digest.c
131 (soup_auth_domain_digest_set_auth_callback):
132 * libsoup/soup-message.c (soup_message_cleanup_response)
133 (soup_message_set_flags, soup_message_set_http_version)
134 (soup_message_set_uri, soup_message_set_status)
135 (soup_message_set_status_full):
136 * libsoup/soup-message-client-io.c (parse_response_headers):
137 * libsoup/soup-message-server-io.c (parse_request_headers):
138 Call g_object_notify() when changing properties.
140 * libsoup/soup-session.c (soup_session_class_init): bump the
141 default value of SOUP_SESSION_MAX_CONNS_PER_HOST down to 2, per
144 * libsoup/soup-message-body.c (soup_buffer_copy): When copying a
145 TEMPORARY buffer, keep a reference to the copy, so that a second
146 copy will get that same buffer, rather than actually copying it
149 * libsoup/soup-types.h: remove SoupMessageFilter, which doesn't
152 2008-01-07 Dan Winship <danw@gnome.org>
154 * libsoup/soup-session.c (soup_session_class_init): Change
155 request_started signal to have a SoupSocket as its last parameter.
157 * libsoup/soup-server.c: Fix request_* signals to all be (server,
158 msg, client) rather than (server, client, msg).
160 2008-01-07 Dan Winship <danw@gnome.org>
162 * docs/reference/porting-2.2-2.4.xml: Notes on porting from 2.2 to
165 2008-01-07 Dan Winship <danw@gnome.org>
167 * libsoup/*.c: Move gtk-doc stuff from docs/reference/tmpl/ to the
168 C files themselves. Some updates.
170 * docs/reference/Makefile.am: fix (kludge?) this up to not require
173 * docs/reference/client-howto.xml:
174 * docs/reference/server-howto.xml: update
176 2008-01-06 Dan Winship <danw@gnome.org>
178 * libsoup/soup-soap-message.c:
179 * libsoup/soup-soap-response.c: For the second time, remove SOAP
180 support from libsoup... These APIs are not really all that helpful
181 in the grand scheme of SOAPiness, and are only used by the
182 Evolution GroupWise backend, which can just import this code and
183 integrate it better there.
185 * libsoup/soup-misc.c (soup_xml_real_node):
186 * libsoup/soup-xmlrpc.c: Move soup_xml_real_node out of soup-misc
187 to soup-xmlrpc, and make it private. libxml is no longer exposed
190 2008-01-06 Dan Winship <danw@gnome.org>
192 * libsoup/soup-date.c (soup_date_new_from_now): new method to
193 generate a date relative to now.
194 (soup_date_new, etc): document SoupDate methods
196 * libsoup/soup-server.c (got_headers): set Date header, as
199 2008-01-06 Dan Winship <danw@gnome.org>
201 * libsoup/soup-server.c (got_headers): if raw_paths isn't set,
202 decode the request's uri->path before doing anything else
203 (soup_server_class_init): add "raw-paths" property, to tell
204 SoupServer to NOT decode the Request-URI path.
206 * libsoup/soup-auth-domain.c (soup_auth_domain_covers): Revert
207 earlier path-decoding change; that happens at the SoupServer level
210 2008-01-06 Dan Winship <danw@gnome.org>
212 * libsoup/soup-message-body.c (soup_buffer_get_type): Register
213 SoupBuffer as a boxed type.
215 * libsoup/soup-message.c (soup_message_class_init): Use
216 SOUP_TYPE_BUFFER in got_chunk signal definition
218 * libsoup/soup-server.c (soup_client_context_get_type): Register
219 SoupClientContext as a pointer type
220 (soup_server_class_init): use SOUP_TYPE_CLIENT_CONTEXT in signal
223 * libsoup/soup-marshal.list: clean this up
225 2008-01-06 Dan Winship <danw@gnome.org>
227 * libsoup/soup-server.c (SoupClientContext): Make this opaque.
228 (soup_client_context_get_socket)
229 (soup_client_context_get_auth_domain)
230 (soup_client_context_get_auth_user): New accessors
231 (soup_server_class_init): Make the signals take a
232 SoupClientContext rather than a SoupSocket.
233 (start_request, check_auth, call_handler, request_finished): Clean
234 these up by using a SoupClientContext to communicate between them.
235 (soup_server_add_handler): tweak the argument order to match the
236 gtk standard (callback, user_data, destroynotify).
238 2008-01-06 Dan Winship <danw@gnome.org>
240 * libsoup/soup-address.c: remove the "dns_result" signal, which
241 was just an implementation detail of soup_address_resolve_async().
243 2008-01-06 Dan Winship <danw@gnome.org>
245 * libsoup/*.c: misc documentation updates/gtk-doc fixes
247 * libsoup/soup-server.c: finally start documenting this properly.
249 * libsoup/soup-status.h (SoupStatusClass): kill this, since
250 soup_message_add_status_class_handler() is gone now.
252 * libsoup/soup-status.c (soup_status_get_phrase): Update docs to
253 explain that you probably don't want to use this.
255 * libsoup/soup-misc.h (SOUP_SSL_ERROR, SoupSSLError): Move these
256 here, since soup-ssl.h isn't installed.
258 * docs/references: start updating this...
260 2008-01-04 Dan Winship <danw@gnome.org>
262 * libsoup/soup-message-body.c (soup_buffer_new)
263 (soup_message_body_append): Reorder the arguments to match
264 soup_message_set_request/response, so it's not confusing.
266 * libsoup/soup-message.c (wrote_chunk): remove the "chunk" arg
267 from the signal, as it turns out to be *in*convenient, since most
268 callers use this signal to mean "need another chunk", so they want
269 it to have the same prototype as "wrote_headers", which means
272 2008-01-04 Dan Winship <danw@gnome.org>
274 * libsoup/soup-auth-domain.c: add documentation
275 (soup_auth_domain_set_filter): take a GDestroyNotify, for better
278 * libsoup/soup-auth-domain-basic.c:
279 * libsoup/soup-auth-domain-digest.c: Add documentation. Replace
280 authentication signals with more-easily-bindable authentication
281 callbacks (with GDestroyNotifys).
282 (soup_auth_domain_digest_evil_check_password): Add this for the
283 benefit of code that depends on being able to do the equivalent
284 of the old soup_server_auth_check_passwd().
286 2008-01-02 Dan Winship <danw@gnome.org>
288 * libsoup/soup-message-body.h (SoupMessageBody): add data and
289 length parameters like SoupBuffer, to make this easier for callers
292 * libsoup/soup-message-body.c (soup_message_body_append)
293 (soup_message_body_append_buffer)
294 (soup_message_body_truncate): Update body->length
295 (soup_message_body_flatten): Fill in body->data (and NUL-terminate
296 it as an added bonus).
298 * libsoup/soup-message.c (got_body): flatten the newly-gotten
300 (soup_message_get_request, soup_message_get_response): gone
302 * libsoup/soup-message-client-io.c (get_request_headers):
303 * libsoup/soup-message-server-io.c (get_response_headers):
304 * libsoup/soup-soap-message.c (soup_soap_message_parse_response):
305 * tests/*.c: simplify
307 2008-01-02 Dan Winship <danw@gnome.org>
309 * libsoup/Makefile.am (soup_headers): oops, move soup-auth.h here
311 2008-01-02 Dan Winship <danw@gnome.org>
313 * libsoup/soup-form.c: new HTML-form-related methods (just URI
314 decoding/encoding at the moment).
316 * libsoup/soup-server.h (SoupServerCallback): change the prototype
317 to include the decoded path and query rather than the undecoded
320 * libsoup/soup-server.c (call_handler): %-decode the URI path
321 before looking up a handler. Decode query if available. Pass path
322 and query to the callback.
324 * libsoup/soup-auth-domain.c (soup_auth_domain_covers): fix this
325 to %-decode the URI path before testing it
327 * libsoup/soup-message-body.c (soup_message_body_append): allow
330 * tests/query-test.c: URI query parsing test
332 2008-01-02 Dan Winship <danw@gnome.org>
334 * libsoup/soup-uri.c:
335 * libsoup/soup-uri.h: Change all the "const SoupURI *" to just
336 "SoupURI *", since the const is just there to be annoying.
340 2008-01-02 Dan Winship <danw@gnome.org>
342 * libsoup/soup-message-body.c (soup_message_body_get_length)
343 (soup_message_body_get_chunk): Use goffset rather than gsize for
344 references to the entire size of the message body. (SoupBuffer
345 still uses gsize, so individual chunks can only be G_MAXSIZE
348 * libsoup/soup-message-headers.c
349 (soup_message_headers_get_content_length):
350 (soup_message_headers_set_content_length): Likewise, use goffset.
352 2008-01-02 Dan Winship <danw@gnome.org>
354 * libsoup/soup-message-headers.c (soup_message_headers_get):
355 Renamed from soup_message_headers_find, and with new behavior; now
356 multiple headers with the same name are automatically merged
357 together into a single comma-separated value, to ensure that apps
358 treat multivalued headers the same regardless of how upstream
359 servers generate them.
360 (soup_message_headers_find_nth): no longer needed/wanted
362 * libsoup/soup-auth-manager.c: Update to deal with
363 SoupMessageHeaders change. (Ugh.)
365 * tests/header-parsing.c: Update multiple-values test, and undo a
366 change that mistakenly got committed while debugging something
369 2008-01-01 Dan Winship <danw@gnome.org>
371 * libsoup/soup-auth-manager.c:
372 * libsoup/soup-dns.c:
373 * libsoup/soup-gnutls.c:
374 * libsoup/soup-message.c:
375 * libsoup/soup-message-io.c:
376 * libsoup/soup-message-queue.c:
377 * libsoup/soup-misc.c:
378 * libsoup/soup-path-map.c:
379 * libsoup/soup-server.c:
380 * libsoup/soup-session.c:
381 * libsoup/soup-session-sync.c:
382 * libsoup/soup-socket.c: Use g_slice.
384 2008-01-01 Dan Winship <danw@gnome.org>
386 * libsoup/soup-session.c (soup_session_cancel_message): add a
387 "status_code" argument rather than having the caller set the
388 status code separately, to prevent a race condition.
390 2008-01-01 Dan Winship <danw@gnome.org>
392 * libsoup/soup-session.c (soup_session_queue_message): change the
393 callback type to include the SoupSession as a parameter as well.
397 2007-12-31 Dan Winship <danw@gnome.org>
399 * libsoup/soup-session.c (soup_session_class_init): change
400 the "authenticate" signal to include a SoupAuth rather than its
401 components, and to have a "retrying" parameter rather than
402 separating "authenticate" and "reauthenticate".
404 * libsoup/soup-connection.c (soup_connection_class_init): Likewise
406 * libsoup/soup-auth-manager.c (authenticate_auth): update
408 * libsoup/soup-auth.c: make various attributes into gobject
410 (soup_auth_is_for_proxy): check whether an auth is plain or proxy
411 (soup_auth_get_host): get the hostname associated with an auth
413 * libsoup/soup-auth-ntlm.c: dummy class used by SoupConnectionNTLM
414 in the authenticate signal
416 * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): update for
417 authenticate signals changes; use a fake SoupAuthNTLM to assist.
419 2007-12-20 Dan Winship <danw@gnome.org>
421 * libsoup/soup-message.c (soup_message_add_header_handler)
422 (soup_message_add_status_code_handler): Make these be wrappers
423 around g_signal_connect() rather than having a completely separate
425 (soup_message_class_init): improve signal docs. Use
426 "got_foo_signal_wrapper" to wrap the got-foo signals.
427 (got_foo_signal_wrapper): Wraps the marshaller for the got-foo
428 signals and cancels the signal emission if the message gets
429 cancelled or requeued.
430 (got_informational, got_headers, got_chunk, got_body): remove
431 no-longer-needed default implementations.
433 * libsoup/soup-message-handlers.c: gone
435 * tests/ntlm-test.c (do_message): Simplify now that callback
436 processing doesn't happen in two separate phases.
438 2007-12-20 Dan Winship <danw@gnome.org>
440 * libsoup/soup-auth-domain.c:
441 * libsoup/soup-auth-domain-basic.c:
442 * libsoup/soup-auth-domain-digest.c: New server-side auth system.
444 * libsoup/soup-server.c: remove SoupServerAuth / SoupAuthContext
445 stuff, add SoupAuthDomain support.
446 (SoupServerCallbackFn): improve the args here
447 (SoupClientContext): renamed from SoupServerContext and made less
450 * libsoup/soup-server-auth.c: gone!
452 * libsoup/soup-auth-digest.c (soup_auth_digest_parse_algorithm)
453 (soup_auth_digest_get_algorithm, soup_auth_digest_parse_qop)
454 (soup_auth_digest_get_qop, soup_auth_digest_compute_hex_urp)
455 (soup_auth_digest_compute_hex_a1)
456 (soup_auth_digest_compute_response): New routines shared between
457 client-side and server-side digest auth.
459 * tests/server-auth-test.c: test server-side auth, using curl for
462 * configure.in: check for curl, for server-auth-test
464 2007-12-20 Dan Winship <danw@gnome.org>
466 * libsoup/soup-headers.c (soup_header_parse_list)
467 (soup_header_parse_quality_list): New methods to parse list-type
468 headers (with optional qvalues) correctly.
469 (soup_header_parse_param_list): Rename to match the other methods,
470 and update the semantics a bit.
471 (soup_header_contains): Correctly check for a token in a list
473 * libsoup/soup-message.c (soup_message_is_keepalive):
474 * libsoup/soup-message-client-io.c (get_request_headers):
475 * libsoup/soup-message-server-io.c (parse_request_headers): Use
476 soup_header_contains() with Connection headers.
478 * tests/header-parsing.c (do_qvalue_tests): add
479 soup_header_parse_quality_list() test
481 2007-12-20 Dan Winship <danw@gnome.org>
483 * libsoup/soup-auth-manager.c: Move auth-related code from
484 SoupSession and SoupAuth here, and make various cleanups and
485 beginnings of cleanups.
487 * libsoup/soup-session.c: lots of stuff moved to
490 * libsoup/soup-auth.c (soup_auth_new_from_headers): partly moved
491 to soup-auth-manager.c, partly renamed to soup_auth_new().
492 (soup_auth_update): new method to update an existing auth based on
493 a new WWW-Authenticate/Proxy-Authenticate header. Also replaces
494 the old "construct" method.
496 * libsoup/soup-auth-digest.c (update): Implement. If the new auth
497 has stale=true, don't invalidate the auth, just update the nonce.
498 (get_authorization): add a header handler to the message to catch
499 Authentication-Info/Proxy-Authentication-Info headers so that if
500 there's a nextnonce, we can start using it. #471380.
502 * libsoup/soup-auth-basic.c (update): Implement. (Updating an
503 existing Basic auth always invalidates it.)
505 * tests/http.conf.in:
506 * tests/auth-test.c: add a test for digest nonce handling
508 2007-12-20 Dan Winship <danw@gnome.org>
510 * libsoup/soup-path-map.c: New type representing a sparse
511 path->something mapping
513 * libsoup/soup-server.c: Use SoupPathMap to record handlers. Make
514 SoupServerHandler a private type.
515 (soup_server_new): Rewrite this to just be a thin wrapper, and put
516 all of the code into a constructor override. #491653
517 (soup_server_add_handler): Turn the "unregister" arg into a
518 GDestroyNotify, for better bindability.
520 2007-12-19 Dan Winship <danw@gnome.org>
522 * libsoup/soup-server.c: define new request_started, request_read,
523 request_finished, and request_aborted signals, for finer-grained
524 tracking than normal handlers allow.
525 (check_auth): split this out of call_handler, and run it
526 immediately after "got_headers", not "got_body", so that we can
527 preemptively reject "Expect: 100-continue" messages that will
530 * libsoup/soup-message-io.c (io_write, io_read): Fix up
531 100-continue processing
533 * tests/continue-test.c: new test of client/server 100-continue
536 2007-12-19 Dan Winship <danw@gnome.org>
538 * libsoup/soup-socket.c: Cleanup. Remove the "connect_result"
539 signal. Make local_address and remote_address
540 into (construct-only) properties.
541 (soup_socket_connect_async, soup_socket_connect_sync): Replace
542 soup_socket_connect. _async takes a callback+user_data (like the
543 old soup_socket_client_new_async), but doesn't implement the
544 callback in terms of a connect_result signal.
545 (soup_socket_client_new_async, soup_socket_client_new_sync): Gone.
546 (Unused since the async_context addition anyway). Replaced by the
547 new construct properties and connect methods.
548 (soup_socket_read, soup_socket_read_until, soup_socket_write):
549 Make these actually take a GError rather than doing an ugly hack
550 to preserve the old API.
551 (SOUP_SOCKET_FLAG_NODELAY, SOUP_SOCKET_FLAG_REUSEADDR)
552 (SOUP_SOCKET_FLAG_CLOEXEC): kill these off (all three are always
553 TRUE now); SoupSocket is libsoup's socket API; it's not
554 necessarily intended to be generically useful for everyone.
556 * *.c: Update for SoupSocket changes
558 2007-12-19 Dan Winship <danw@gnome.org>
560 * libsoup/soup-server-message.c: Kill!
562 * libsoup/soup-message-server-io.c (parse_request_headers):
563 Generate the full request URL from the socket's data, since we no
564 longer have soup_server_message_get_server().
566 * libsoup/soup-server.c (request_finished, call_handler)
567 (start_request, new_connection): update
569 2007-12-19 Dan Winship <danw@gnome.org>
571 * libsoup/soup-message-headers.c: Add some more fields to
572 SoupMessageHeaders, and start caching the parsed values of certain
574 (soup_message_headers_get/set_encoding): replaces old SoupMessage
575 methods, and only deals with the declared transfer encoding, not
577 (soup_message_headers_get/set_content_length): Handle
579 (soup_message_headers_get_expectations): Handle Expect. (Replaces
580 the SOUP_MESSAGE_EXPECT_CONTINUE flag).
582 * libsoup/soup-message.c (soup_message_get_request_encoding):
583 (soup_message_get_response_encoding):
584 (soup_message_set_response_encoding): replaced by
585 SoupMessageHeaders methods.
587 * libsoup/soup-message-client-io.c:
588 * libsoup/soup-message-server-io.c:
589 * libsoup/soup-message-io.c: Update for SoupMessageHeaders changes
590 with encoding/content-length stuff.
592 2007-12-19 Dan Winship <danw@gnome.org>
594 * libsoup/soup-message-body.c (SoupMessageBody): new opaque type
595 for request/response bodies allowing less hacky handling of
597 (SoupBuffer): refcounted buffer type
599 * libsoup/soup-message.h (SoupMessage): turn request and response
600 members into SoupMessageBody.
601 (SoupOwnership, SoupDataBuffer): gone, replaced by
602 SoupMessageBody/SoupBuffer.
604 * libsoup/soup-message.c (soup_message_wrote_chunk)
605 (soup_message_got_chunk): add the chunk as a signal param rather
606 than having it be visible in msg->request/response.
607 (soup_message_add_chunk, soup_message_add_final_chunk)
608 (soup_message_pop_chunk): replaced by SoupMessageBody methods now.
610 2007-12-19 Dan Winship <danw@gnome.org>
612 * libsoup/soup-xmlrpc.c:
613 * libsoup/soup-value-utils.c: Oops. Change the API a bunch so this
614 works on x86; apparently I was doing illegal things with va_lists
615 before that only work on x86_64.
617 2007-12-14 Dan Winship <danw@gnome.org>
619 * libsoup/soup-message.c: use GObject properties for SoupMessage
622 * libsoup/soup-message-server-io.c:
623 * libsoup/soup-soap-message.c: update for that
625 2007-12-14 Dan Winship <danw@gnome.org>
627 * libsoup/soup-uri.c: Rename from SoupUri to SoupURI. Use the
628 slice allocator and register as a boxed type.
629 (SoupURI): Rename "protocol" field to "scheme" and "passwd" to
630 "password". Make scheme an interned string. Replace
631 SOUP_PROTOCOL_HTTPS with soup_uri_is_https().
635 2007-12-14 Dan Winship <danw@gnome.org>
637 * libsoup/Makefile.am: Use glib-mkenums to build soup-enum-types.c
638 and soup-enum-types.h
640 * libsoup/soup-address.h (SoupAddressFamily): redo this definition
641 again, to make glib-mkenums happy.
643 2007-12-13 Dan Winship <danw@gnome.org>
645 * libsoup/soup-xmlrpc.c: New easier-to-use and
646 easier-to-do-language-bindings-of XML-RPC code.
648 * libsoup/soup-xmlrpc-message.c:
649 * libsoup/soup-xmlrpc-response.c: gone
651 * libsoup/soup-value-utils.c: Utilites for working with
652 GValueArray, and GHashTables of GValues, used by soup-xmlrpc.
655 * tests/xmlrpc-test.c: Update to use new XML-RPC stuff
657 2007-12-13 Dan Winship <danw@gnome.org>
659 * libsoup/soup-date.c: Make a SoupDate type, and redo in terms of
660 that rather than struct tm and time_t. Also be much more liberal
663 * libsoup/soup-xmlrpc-message.c (soup_xmlrpc_message_write_datetime):
664 * libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_datetime):
667 * tests/date.c: Use SoupDate, test parsing lots more formats
669 * tests/xmlrpc-test.c: update for SoupDate
671 2007-12-12 Dan Winship <danw@gnome.org>
673 * libsoup/soup-message.c:
674 * libsoup/soup-message-private.h: Remove SoupMessageStatus,
675 msg->status, and soup_message_io_* from the public API, as they
676 all really belong to the session, not the message. (For now
677 they've just been moved to soup-message-private.h, but some day
678 they'll be fully refactored away from SoupMessage.)
680 * libsoup/soup-server.c (soup_server_pause_message)
681 (soup_server_unpause_message):
682 * libsoup/soup-session.c (soup_session_pause_message)
683 (soup_session_unpause_message): session/server-level methods to
684 replace soup_message_io_pause() and soup_message_io_unpause().
686 * libsoup/soup-server-message.c: Remove some unused methods
690 2007-12-05 Dan Winship <danw@gnome.org>
692 * libsoup/soup-connection.c:
693 * libsoup/soup-session.c: replace message filters with a
694 "request_started" signal
696 * libsoup/soup-message-filter.c: gone
698 * libsoup/soup-types.h (SOUP_MAKE_INTERFACE): no longer needed
700 2007-12-05 Dan Winship <danw@gnome.org>
702 * libsoup/soup-uri.c: Update for RFC 3986 changes, bgo 266516, and
704 (soup_uri_get_protocol): match protocols case-insensitively
705 (soup_uri_new_with_base): Don't fully %-decode the fragment,
706 query, and path, but do %-decode anything which isn't supposed to
707 be encoded. Recognize IPv6 address literals. Use stricter
708 "../"-stripping rules on the path. Reject URIs with junk between
709 the port number and the path.
710 (soup_uri_to_string): Update for the fact that the host might be
711 an IPv6 literal, and for the fact that path, query, and fragment
713 (soup_uri_equal): compare hostnames case-insensitively
714 (uri_encoded_char): update to match RFC 3986
715 (append_uri_encoded): use uppercase hex letters as recommended by
717 (soup_uri_normalize): decode only %-escapes that don't belong
720 * docs/reference/tmpl/soup-uri.sgml: add some more SoupUri docs
722 * tests/uri-parsing.c: Add new tests from RFC 3986, RFC 2732, RFC
723 2616, bgo 266516, and elsewhere. Update some tests to match new
724 parsing/unparsing rules.
726 2007-12-05 Dan Winship <danw@gnome.org>
728 * libsoup/soup-message.c (soup_message_new)
729 (soup_message_new_from_uri): g_intern_string() the method name
730 rather than assuming it's static. Also remove the NULL==GET
733 * libsoup/soup-method.c:
734 * libsoup/soup-method.h: remove the SOUP_METHOD_ID_* macros, and
735 have the SOUP_METHOD_* macros return interned strings
737 * libsoup/soup-server.h (SoupServerContext): remove method_id
740 * libsoup/soup-server-message.c (finalize): no longer needed,
741 since smsg->method is now an interned string just like with a
744 * libsoup/soup-soap-message.c (soup_soap_message_new_from_uri):
745 remove NULL==GET assumption
749 2007-12-05 Dan Winship <danw@gnome.org>
751 * libsoup/soup-message.h (SoupHTTPVersion): rename (from
754 * libsoup/soup-message-headers.c: New opaque type representing
755 message headers, and new methods that work on it. Uses an array
756 rather than a hash table, to preserve header ordering as required
757 by RFC 2616. (Also fixes the API wart that
758 "soup_message_get_header", etc, did not actually take a
761 * libsoup/soup-message.c: Kill off old header-manipulating
764 * libsoup/soup-headers.c (soup_headers_parse_request): return a
765 guint rather than gboolean, so we can properly return
766 SOUP_STATUS_HTTP_VERSION_NOT_SUPPORTED where appropriate. Also fix
767 up HTTP-Version parsing to conform with the RFC.
768 (soup_headers_parse_status_line): Likewise update HTTP-Version
771 * libsoup/soup-message-server-io.c (parse_request_headers): set
772 return status appropriately on parse errors
774 * tests/header-parsing.c: update / add more tests
778 2007-12-05 Dan Winship <danw@gnome.org>
780 * libsoup/soup-misc.c: remove deprecated base64 methods
782 * tests/auth-test.c (identify_auth): oops, update to use
785 2007-12-05 Dan Winship <danw@gnome.org>
787 * libsoup/Makefile.am (libsoupinclude_HEADERS): remove
788 soup-connection.h and soup-message-queue.h
790 * libsoup/soup-types.h: remove SoupConnection and SoupMessageQueue
791 which are no longer public
793 * libsoup/soup.h: sync this to reality for the first time in years
795 * libsoup/soup-session.c (soup_session_get_queue): Add this, for
796 subclasses, as the queue is no longer a public part of the session
799 * libsoup/soup-message.h:
800 * libsoup/soup-message-private.h: Move soup_message_send_request()
801 and soup_message_receive_request() to soup-message-private.h,
802 remove soup_message_send_request_internal().
804 * libsoup/soup-session-private.h: Move "protected" SoupSession
805 methods (soup_session_get_connection,
806 soup_session_try_prune_connection) here from soup-session.h
807 Add soup_session_get_queue.
809 2007-12-05 Dan Winship <danw@gnome.org>
811 * configure.in: bump version to 2.3.0 and SOUP_API_VERSION to 2.4,
812 and drop AGE/CURRENT/REVISION all to 0.
814 * libsoup/Makefile.am: Rename library to libsoup-2.4.la
816 (start of libsoup-2.4 branch)
818 2007-11-26 Dan Winship <danw@gnome.org>
820 * configure.in: 2.2.104
824 2007-11-21 Dan Winship <danw@gnome.org>
826 * libsoup/soup-message-io.c (soup_message_io_cleanup): make this
829 * libsoup/soup-message.c (finalize): Use soup_message_io_cleanup()
830 rather than soup_message_io_stop(), to avoid leaks when finalizing
831 an unfinished message. (Another part of #498509, Wouter Cloetens.)
833 2007-11-20 Dan Winship <danw@gnome.org>
835 Fix up SOUP_SESSION_ASYNC_CONTEXT. #498509, Wouter Cloetens
837 * libsoup/soup-message-io.c (soup_message_io_unpause): don't leak
840 * libsoup/soup-server.c (soup_server_quit): disconnect the
841 "new_connection" handler.
842 (soup_server_get_async_context): Convenience method to return the
843 server's async_context.
845 * libsoup/soup-server-message.c: don't circularly ref the server,
846 there's no need anyway.
848 * libsoup/soup-session.c (soup_session_get_async_context):
849 Convenience method to return the session's async_context.
851 * libsoup/soup-session-async.c (queue_message): call run_queue in
852 the session's async_context, not the main context.
853 (send_message): don't leak the async_context
855 * libsoup/soup-session-sync.c (queue_message_thread): don't leak
858 * tests/context-test.c: test that SOUP_SESSION_ASYNC_CONTEXT works
861 2007-11-20 Dan Winship <danw@gnome.org>
863 * libsoup/soup-connection.c (soup_connection_connect_async): don't
864 leak the SoupAddress.
866 * libsoup/soup-dns.c (soup_dns_lookup_resolve_async): fix a leak
867 when re-looking up an address
869 * libsoup/soup-session.c (soup_session_abort): close all
870 connections in addition to cancelling messages (needed because
871 connections currently end up holding a ref on their session,
872 preventing them from being destroyed).
876 * tests/proxy-test.c:
879 * tests/xmlrpc-test.c: clean up more memory on exit, to help find
882 * tests/libsoup.supp: add a zillion new suppressions so we
883 can use --leak-resolution=med
885 2007-11-16 Dan Winship <danw@gnome.org>
887 * libsoup/soup-message-io.c (read_body_chunk): Fix the guards
888 around the got_chunk emission so that it doesn't get messed up if
889 you pause the I/O from the got_chunk handler. (#452280, Marco
891 (soup_message_io_pause, soup_message_io_unpause): Update docs
892 again; these are now allowed with client-side I/O as well. Fix
893 unpause() to unpause asynchronously on async sockets.
895 * libsoup/soup-session-async.c (send_message): Iterate session's
896 async_context, not the default main context.
898 * tests/pull-api.c: Test/sample of creating a pull-style API using
901 * tests/index.txt: new file to act as DirectoryIndex for the
902 tests. (In particular, pull-api wants this to be largeish.)
904 2007-10-28 Dan Winship <danw@gnome.org>
906 * configure.in: 2.2.103
910 2007-10-28 Dan Winship <danw@gnome.org>
912 * libsoup/soup-server.c (start_request, request_finished): ref the
913 socket around the processing of the message, since otherwise it
914 might already be freed when request_finished runs. #459896.
916 * libsoup/soup-message-io.c (soup_message_io_pause)
917 (soup_message_io_unpause): Clarify the docs here; this is for
918 server-side use only. Inspired by #452280.
920 * docs/reference/server-howto.xml: You need to watch the
921 "finished" signal on the message if using soup_message_io_pause()
922 or chunked encoding, because the client might disconnect while
923 you're paused. Clarification inspired by #471385.
925 * tests/simple-proxy.c (client_msg_failed): Fix this to DTRT since
926 server-howto.xml points to it as an example of what to do.
928 2007-10-28 Dan Winship <danw@gnome.org>
930 * libsoup/soup-session.c (finalize): free proxy-related stuff
932 * libsoup/soup-session-async.c (idle_run_queue): clean up the weak
933 pointer. (From the dev repo, but identical to a patch from Rob
934 Bradford in #484988.)
936 * tests/*.c: fix leaks
938 2007-10-28 Dan Winship <danw@gnome.org>
942 * tests/header-parsing.c:
944 * tests/proxy-test.c:
945 * tests/uri-parsing.c:
946 * tests/xmlrpc-test.c: Make these less verbose by default (to make
947 it easier to see what failed when a "make check" fails).
949 2007-10-15 Dan Winship <danw@gnome.org>
951 * configure.in: 2.2.102
955 2007-10-08 Dan Winship <danw@gnome.org>
957 * libsoup/soup-nossl.c: Update for current soup-ssl.h prototypes
959 * tests/proxy-test.c (run_test): wrap https tests in #if HAVE_SSL
961 2007-10-05 Dan Winship <danw@gnome.org>
963 * configure.in: 2.2.101
967 * tests/httpd.conf.in:
969 * tests/ssl-test.c: srcdir != builddir fixes
971 2007-10-05 Dan Winship <danw@gnome.org>
973 * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Don't crash
974 if the authenticate callback returns a username and no password
975 (even though it's not supposed to do that). #480987
977 2007-09-24 Dan Winship <danw@gnome.org>
979 * libsoup/soup-auth.h (SoupAuth): add "realm" field to the struct.
980 (SoupAuthClass) remove "get_realm" virtual method.
982 * libsoup/soup-auth.c (soup_auth_new_from_header_list): Parse the
983 WWW-Authenticate/Proxy-Authenticate header here, set realm, and
984 pass the params hash to the construct method.
985 (soup_auth_get_info): Return an identifier for the auth:
988 * libsoup/soup-auth-basic.c:
989 * libsoup/soup-auth-digest.c: update
991 * libsoup/soup-session.c (invalidate_auth, update_auth_internal):
992 use soup_auth_get_info().
994 2007-09-24 Dan Winship <danw@gnome.org>
996 * libsoup/soup-date.c (soup_date_parse): minor rfc850-date parsing
997 improvement suggested by RFC2616 19.3.
999 * libsoup/soup-headers.c (soup_headers_parse_request): allow
1000 erroneous trailing whitespace after HTTP version. #475169
1002 * libsoup/soup-message-server-io.c (parse_request_headers): fix
1003 the parsing of the Host header to assume it already includes the
1004 port (which it should; the only reason this ever worked is because
1005 SoupUri ignores the second port number when parse_request_headers
1006 generates a URL like "http://localhost:9999:9999/").
1008 * tests/header-parsing.c (reqtests): add a test for #475169
1010 2007-09-23 Dan Winship <danw@gnome.org>
1012 * libsoup/soup-message.c (soup_message_class_init): remove a
1013 mysterious partial sentence in the ::wrote-chunk docstring.
1016 * docs/reference/libsoup-sections.txt: Remove documentation of MD5
1017 methods, which are not public. #440092
1019 2007-09-23 Dan Winship <danw@gnome.org>
1021 * libsoup/soup-message.c (soup_message_set_auth)
1022 (soup_message_set_proxy_auth): Only remove the Authorization /
1023 Proxy-Authorization header from the message if it was previously
1024 set by soup_message_set_auth(). (Eg, not if it was added by
1025 SoupConnectionNTLM.) #471389
1027 * libsoup/soup-connection-ntlm.h: fix a search-and-replace-o
1029 * tests/ntlm-test.c: Simple NTLM regression test; doesn't really
1030 test the crypto/encoding bits, just that the right headers are
1031 being sent at the right times.
1033 2007-09-14 Dan Winship <danw@gnome.org>
1035 Make "make check" pass on Fedora 7:
1037 * configure.in: update apache/php tests with additional filenames
1039 * tests/httpd.conf.in: updates for configure.in changes and
1040 slightly-more-recent apache
1042 * tests/ssl-test.c (start_writing): fix uninitialized struct field
1043 (main): start server after setting up client since otherwise
1044 there's a race condition since soup_gnutls_init() isn't actually
1045 thread-safe. (FIXME)
1047 * tests/xmlrpc-server.php: rewrite to not use $HTTP_RAW_POST_DATA
1048 (which only exists if register_globals is set)
1050 2007-06-01 Dan Winship <danw@novell.com>
1052 * libsoup/soup-message-filter.h (SOUP_IS_MESSAGE_FILTER_CLASS):
1053 fix. noted by "cascardo" on libsoup-list.
1055 2007-05-16 Jonathon Jongsma <jjongsma@gnome.org>
1057 * libsoup/*.h: add G_BEGIN_DECLS / G_END_DECLS to all installed
1058 headers so that libsoup can be used from C++ programs. #438776
1060 2007-04-16 Dan Winship <danw@novell.com>
1062 * libsoup/soup-ssl.h: Make a real SoupSSLCredentials type rather
1063 than just using gpointer
1065 * libsoup/soup-server.c (SoupServerPrivate): use it
1067 * libsoup/soup-session.c (SoupSessionPrivate): use it
1069 * libsoup/soup-gnutls.c: Use it, and consistently use "creds"
1070 rather than "cred" as the abbreviation for "credentials".
1072 * docs/reference/libsoup-sections.txt:
1073 * docs/reference/tmpl/soup-misc.sgml:
1074 * docs/reference/tmpl/soup-ssl.sgml: update
1076 2007-03-29 Dan Winship <danw@novell.com>
1078 * libsoup/soup-session-sync.c (queue_message): Implement this by
1079 sending the message (synchronously) in another thread and then
1080 queueing the callback back in the main thread.
1082 * libsoup/soup-session.c (soup_session_queue_message): update docs
1083 to be more explicit about what thread the callback occurs in
1085 2007-03-17 Dan Winship <danw@novell.com>
1087 * libsoup/soup-message.c (soup_message_set_auth)
1088 (soup_message_get_auth, soup_message_set_proxy_auth)
1089 (soup_message_get_proxy_auth): get/set auth/proxy_auth info for a
1092 * libsoup/soup-session.c (add_auth): Use soup_message_set_auth and
1093 soup_message_set_proxy_auth.
1094 (update_auth_internal): Call soup_message_get_auth or
1095 soup_message_get_proxy_auth to determine the message's prior auth,
1096 rather than calling lookup_auth() again, since it isn't guaranteed
1097 to return the same thing now as it did when the message was
1098 originally sent. Fixes erroneous 401s when queuing multiple
1099 messages at once to an as-yet-unauthenticated-to server. #271540
1101 * libsoup/soup-session-async.c (queue_message): don't run the
1102 queue right away, do it at idle time. Otherwise in some cases
1103 (especially errors), the message callbacks could be invoked before
1104 queue_message returns.
1106 * tests/auth-test.c: add a regression test for #271540.
1108 2007-03-17 Dan Winship <danw@novell.com>
1110 * configure.in: require glib 2.12. check for timegm().
1112 * libsoup/soup-date.c (soup_mktime_utc): Use timegm if available.
1113 (soup_date_iso8601_parse): use g_time_val_from_iso8601. #337010,
1114 patch from Emmanuele Bassi.
1116 * libsoup/soup-types.h: remove local copy of
1117 G_GNUC_NULL_TERMINATED since we now depend on a new-enough copy of
1120 * libsoup/soup-misc.c (soup_base64_encode_close)
1121 (soup_base64_encode_step, soup_base64_encode)
1122 (soup_base64_decode_step): Make these just be wrappers around the
1123 glib base64 methods. (For now; eventually they'll just go away.)
1125 * libsoup/soup-auth-basic.c (authenticate):
1126 * libsoup/soup-auth-digest.c (authenticate):
1127 * libsoup/soup-connection-ntlm.c (soup_ntlm_parse_challenge)
1128 (soup_ntlm_response):
1129 * libsoup/soup-server-auth.c (soup_server_auth_new):
1130 * libsoup/soup-soap-message.c (soup_soap_message_write_base64):
1131 * libsoup/soup-xmlrpc-message.c
1132 (soup_xmlrpc_message_write_base64):
1133 * libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_base64):
1134 Use glib base64 methods
1136 2007-03-16 Dan Winship <danw@novell.com>
1138 * libsoup/soup-message.c (soup_message_get_response_encoding):
1139 update the handling of CONNECT: it has no response body by
1140 default, but does have a body if its headers say so.
1142 * tests/proxy-test.c: test libsoup's behavior when talking to
1145 * tests/httpd.conf.in: Load mod_proxy and mod_ssl, and add
1146 sections configuring them, for proxy-test
1148 * configure.in: update the apache-module-dir-finding code to deal
1149 with the fact that some modules (eg, mod_ssl) might only be in the
1150 mpm-specific module dir, while others (eg, mod_php5) might only be
1151 in the generic module dir.
1153 2007-03-12 Dan Winship <danw@novell.com>
1155 * tests/Makefile.am (INCLUDES): add $(LIBGNUTLS_CFLAGS) for
1156 ssl-test. #417617, patch from Elijah Newren.
1158 2007-03-12 Dan Winship <danw@novell.com>
1160 * libsoup/soup-session-sync.c (wait_for_connection): if
1161 soup_connection_connect_sync() returns SOUP_STATUS_TRY_AGAIN, then
1162 try again. (Duh.) Fixes SSL-via-proxy-when-using-synchronous-I/O-
1163 where-the-proxy-closes-the-connection-when-returning-407. (Reported
1166 * tests/get.c: Rewrite to use soup_session_send_message rather
1167 than soup_session_queue_message, and add a "-s" flag to use
1168 SoupSessionSync rather than SoupSessionAsync (so we can test bugs
1169 in the sync code paths).
1171 2007-03-08 Dan Winship <danw@novell.com>
1173 * libsoup/soup-gnutls.c (do_handshake): don't return
1174 G_IO_STATUS_AGAIN if we're doing blocking I/O; just keep retrying
1175 until the handshake is complete.
1176 (soup_gnutls_read, soup_gnutls_write): if we get
1177 GNUTLS_E_REHANDSHAKE, call do_handshake() immediately rather than
1178 returning G_IO_STATUS_AGAIN; if the socket is blocking then
1179 G_IO_STATUS_AGAIN is wrong, and if the socket is non-blocking, we
1180 might already need to return SOUP_SSL_ERROR_HANDSHAKE_NEEDS_WRITE
1181 or SOUP_SSL_ERROR_HANDSHAKE_NEEDS_READ.
1183 #415402, based on a patch from Jacob Berkman.
1185 * tests/ssl-test.c: basic ssl test. In particular, tests that
1186 rehandshake requests are handled correctly during both synchronous
1187 and asynchronous I/O. Might eventually test other stuff too...
1190 * tests/Makefile.am: updates for ssl-test
1192 2007-02-19 Dan Winship <danw@novell.com>
1194 * configure.in: Get gcrypt libs/cflags.
1196 * libsoup/Makefile.am (INCLUDES, libsoup_2_2_la_LIBADD): add
1197 gcrypt flags. Patch from "Cygwin Ports Maintainer", #384498
1199 2007-02-12 Dan Winship <danw@novell.com>
1201 * configure.in: 2.2.100
1203 2007-02-12 Dan Winship <danw@novell.com>
1205 * libsoup/soup-headers.c (soup_headers_parse_status_line): Fix
1206 this to handle "\0"-terminated status lines (eg, from WebDAV
1207 responses), like the docs say it does. #406997
1208 (soup_headers_parse): Balance that out by rejecting internal "\0"s
1210 (soup_headers_parse_request, soup_headers_parse_response): Update
1211 docs to warn that @dest may be modified even on error. (This was
1212 always true, it just wasn't documented.)
1214 2007-01-16 Dan Winship <danw@novell.com>
1216 * tests/header-parsing.c (do_request_tests, do_response_tests):
1217 initialize "errors" to 0. duh. Pointed out by Michael Wolf.
1219 2007-01-08 Dan Winship <danw@novell.com>
1221 * configure.in: 2.2.99
1225 2007-01-06 Dan Winship <danw@novell.com>
1227 * libsoup/soup-headers.c (soup_headers_parse): Rewrite this to be
1228 easier to understand and more correct, and make the "str" param
1229 const rather than overwriting it during parsing.
1230 (soup_headers_parse_request, soup_headers_parse_response):
1231 Likewise, make "str" param const. Fix the doc comment to describe
1232 the correct constraint on str. Make the parsing slightly more
1233 lenient as per sections 4.1 and 19.3 of RFC 2616.
1235 * tests/header-parsing.c: new regression test, for Request-Line,
1236 Status-Line, and message-header parsing.
1238 Inspired by #391970 (crash in SoupServer when certain invalid
1239 requests are received).
1241 2006-12-05 Dan Winship <danw@novell.com>
1243 * libsoup/soup-message.c (soup_message_set_uri): Remove the calls
1244 to soup_message_io_stop() here; the corresponding calls were
1245 needed back in the SoupContext days, but they are wrong now and
1246 cause async-redirects-to-other-hosts to fail. #382251. Also
1247 clarify docs with respect to soup_session_requeue_message().
1249 * libsoup/soup-message-io.c (soup_message_io_stop): Clarify docs
1251 * libsoup/soup-session.c (finalize): Free ssl_creds. Pointed out
1254 2006-11-20 Dan Winship <danw@novell.com>
1256 * configure.in: 2.2.98
1260 2006-11-20 Dan Winship <danw@novell.com>
1262 Patch from Andrew W. Nosenko:
1264 * libsoup/soup-message-client-io.c (parse_response_headers): Avoid
1265 memory leak when parse_response_headers() is called on a message
1266 that has a 'reason_phrase' already for some reason.
1268 * libsoup/soup-gnutls.c (soup_gnutls_free): Avoid memory leak:
1269 hostname was not freed.
1270 (soup_ssl_wrap_iochannel): Avoid memory leak: SoupGNUTLSChannel
1271 'chan' was not freed in case of initialization error. Avoid double
1272 close of the "real" (plain, non-ssl) channel FD.
1274 * libsoup/soup-socket.c (soup_socket_start_proxy_ssl): Avoid
1275 memory leak: the "real" (plain, non-ssl) GIOChannel was never
1276 "finally" unreffed (one more *_ref() than *_unref()) in case of
1279 2006-11-20 Dan Winship <danw@novell.com>
1281 * libsoup/soup-connection-ntlm.c (send_request):
1282 * libsoup/soup-session-sync.c (queue_message):
1283 * libsoup/soup-status.c (reason_phrases): Add some missing
1284 "static"s. Patch from Matthias Clasen, #376387
1286 * libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_type)
1287 (soup_xmlrpc_value_get_string): <value>foo</value> should mean the
1288 same thing as <value><string>foo</string></value>. Pointed out by
1289 Todd Kulesza. #364490
1291 2006-11-06 Dan Winship <danw@novell.com>
1293 * configure.in: Bump version to 2.2.97. Bump AGE and CURRENT for
1294 addition of soup_xml_real_node.
1298 2006-11-06 Dan Winship <danw@novell.com>
1300 * libsoup/soup-misc.c (soup_xml_real_node): new method to find a
1301 "real" (ie, not comment or whitespace) xml node
1303 * libsoup/soup-soap-response.c (parse_parameters)
1304 (soup_soap_response_from_string)
1305 (soup_soap_parameter_get_first_child)
1306 (soup_soap_parameter_get_next_child): Use soup_xml_real_node.
1307 Based on a patch from Andrew W. Nosenko.
1309 * libsoup/soup-xmlrpc-message.c (soup_xmlrpc_message_from_string):
1310 don't call xmlKeepBlanksDefault, which changes libxml's behavior
1311 globally! Instead, use soup_xml_real_node() when traversing the
1314 * libsoup/soup-xmlrpc-response.c
1315 (soup_xmlrpc_response_from_string): don't call
1316 xmlKeepBlanksDefault.
1317 (exactly_one_child): rewrite in terms of soup_xml_real_node()
1318 (which means it handles comments now as well)
1319 (soup_xmlrpc_value_get_struct)
1320 (soup_xmlrpc_value_array_get_iterator)
1321 (soup_xmlrpc_value_array_iterator_prev)
1322 (soup_xmlrpc_value_array_iterator_next): Use soup_xml_real_node.
1324 2006-11-05 Dan Winship <danw@novell.com>
1326 * libsoup/soup-headers.c (soup_headers_parse_request): document
1327 this (in particular, point out that str+len must point to exactly
1328 the right place). Allow req_method and req_path to be NULL.
1329 (soup_headers_parse_status_line, soup_headers_parse_response):
1330 document. Also, change "status_phrase" argument to "reason_phrase"
1331 to match the spec. Inspired by #339889.
1333 2006-11-03 Dan Winship <danw@novell.com>
1335 * libsoup/*.c: fix lots of warnings. Partially from patches from
1336 Andrew W. Nosenko, and also some fixes from libsoup-pre214-branch.
1338 2006-11-03 Dan Winship <danw@novell.com>
1340 * Makefile.am (uninstall-local): uninstall the pkgconfig file.
1341 Based on #356809 from Matthew Barnes.
1343 * libsoup/soup-server.c (get_property): Fix leaks pointed out by
1344 Paolo Borelli. #351500
1346 * libsoup/soup-uri.c (soup_uri_get_protocol): Fix an off by one
1347 pointed out by Andrew W. Nosenko.
1349 * configure.in: Use pkgconfig to find gnutls. Remove old static
1350 linking stuff that was only needed for rcd.
1352 * acinclude.m4: remove gnutls stuff
1354 * libsoup.pc.in: Use Requires rather than putting xml/ssl
1355 dependencies directly into Libs/Cflags. From Mikhail Zabaluev.
1358 * libsoup/Makefile.am (libsoup_2_2_la_LDFLAGS): fix build on
1359 cygwin. From "Cygwin Ports maintainer", #321827.
1361 2006-07-24 Dan Winship <danw@novell.com>
1363 * configure.in: 2.2.96. bump AGE and CURRENT for new API
1367 * libsoup/soup-xmlrpc-message.c (soup_xmlrpc_message_from_string):
1368 New, from Fernando Herrera, bug 348532.
1370 2006-07-21 Dan Winship <danw@novell.com>
1372 * libsoup/soup-auth.c (soup_auth_new_from_header_list): if the
1373 constructed auth doesn't have a realm, it's invalid, as per RFC
1374 2617. Based on a patch from Nate Nielsen on libsoup-list.
1375 (soup_auth_get_realm): remove "if available" from docs; all auths
1376 always have a realm.
1378 * libsoup/soup-message-server-io.c (get_response_headers): If the
1379 server handler set a Content-Length header on the message, don't
1380 add a second one. (Preserves compatibility with an old hacky way
1381 that people might have been handling HEAD from SoupServer.)
1383 * README: update to mention mailing list and bugzilla
1385 * HACKING: kill this since there's nothing here that isn't either
1386 obvious, or redundant with the README
1388 2006-07-21 Dan Winship <danw@novell.com>
1390 * libsoup/soup-server-message.c (soup_server_message_init):
1391 initialize encoding to SOUP_TRANSFER_CONTENT_LENGTH rather than
1392 SOUP_TRANSFER_UNKNOWN, since SOUP_TRANSFER_UNKNOWN has never
1393 actually worked here, and so there was an undocumented requirement
1394 that you manually set the encoding on every response
1395 (which SoupServer itself was not doing on internal errors).
1396 Problem pointed out by Dennis Jacobfeuerborn on libsoup-list.
1397 (soup_server_message_set_encoding): reject the new
1398 SoupTransferEncoding values, for compatibility
1400 * libsoup/soup-message.h (SoupTransferEncoding): Clarify that
1401 SOUP_TRANSFER_UNKNOWN is essentially an error value, since in the
1402 public API, it always has been, due to bugs. Add some new values,
1403 currently just for internal use: SOUP_TRANSFER_NONE (for cases
1404 like HEAD which never have a body), SOUP_TRANSFER_EOF (to replace
1405 SOUP_TRANSFER_UNKNOWN), and SOUP_TRANSFER_BYTERANGES (which isn't
1406 actually implemented yet).
1408 * libsoup/soup-message.c (soup_message_get_request_encoding,
1409 soup_message_get_response_encoding): figure out the body encoding
1410 being used by the request/response, including all the tricky
1411 cases like HEAD/1xx/etc.
1412 (soup_message_is_keepalive): if the response encoding is
1413 SOUP_TRANSFER_EOF, then the message isn't keepalive.
1415 * libsoup/soup-message-client-io.c (parse_response_headers): use
1416 soup_message_get_response_encoding.
1418 * libsoup/soup-message-server-io.c (parse_request_headers): use
1419 soup_message_get_request_encoding.
1420 (get_response_headers): use both soup_server_message_get_encoding
1421 and soup_message_get_response_encoding, to properly distinguish
1422 between the wire encoding and the alleged-by-headers encoding
1423 (which differ for HEAD, etc).
1425 * libsoup/soup-message-io.c (io_error, read_body_chunk):
1426 s/SOUP_TRANSFER_UNKNOWN/SOUP_TRANSFER_EOF/.
1427 (io_body_state): if encoding is SOUP_TRANSFER_NONE, jump right to
1428 SOUP_MESSAGE_IO_STATE_FINISHING.
1430 * libsoup/soup-server.c (request_finished): Check
1431 soup_socket_is_connected() *before* soup_message_is_keepalive(),
1432 since the message will be invalid if the client unexpectedly
1433 dropped the connection.
1435 * tests/simple-httpd.c (server_callback): handle HEAD requests.
1436 Remove no-longer-necessary soup_server_message_set_encoding()
1439 * tests/get.c: add -d (debug) flag to print headers, and -h flag
1440 to do a HEAD rather than GET
1442 2006-07-10 Dan Winship <danw@novell.com>
1444 * configure.in: 2.2.95.1, and bump SOUP_AGE/SOUP_CURRENT this
1445 time. Pointed out by Daniel Holbach.
1447 2006-07-10 Dan Winship <danw@novell.com>
1449 * configure.in: 2.2.95
1453 2006-06-19 Dan Winship <danw@novell.com>
1455 * tests/Makefile.am (noinst_PROGRAMS): don't build xmlrpc-test
1456 unless we have apache/php/xmlrpc-epi. Fixes the build. #345342
1458 * configure.in: fix some quoting
1460 2006-06-14 Dan Winship <danw@novell.com>
1462 * configure.in: add tests for apache mod_php5 and xmlrpc-epi-php
1464 * tests/xmlrpc-test.c: XML-RPC regression test
1466 * tests/xmlrpc-server.php: PHP server for xmlrpc-test
1468 * tests/httpd.conf.in: add php stuff
1470 * tests/apache-wrapper.c (apache_cleanup): Use "graceful-stop"
1471 rather than "stop", so that it stops listening on the socket
1472 before exiting, so that we can immediately start another apache
1473 (eg, in "make check").
1475 * libsoup/soup-date.c (soup_mktime_utc): Fix a bug in leap-year
1478 * libsoup/soup-xmlrpc-message.c
1479 (soup_xmlrpc_message_write_datetime): rename from
1480 "..._write_time", to make it consistent with the XML-RPC type name
1481 and the corresponding SoupXmlrpcResponse method. Also, fix it to
1482 use the same ISO 8601 format as the spec, and use the right value
1483 for the seconds field.
1484 (soup_xmlrpc_message_write_base64): Change the buf arg to a
1485 gconstpointer rather than a const char *.
1487 * libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_base64):
1488 Return a GByteArray containing the decoded data, rather than
1489 the base64-encoded string.
1490 (soup_xmlrpc_value_dump_internal): Update for that (and don't
1492 (soup_xmlrpc_value_array_get_iterator,
1493 soup_xmlrpc_value_array_iterator_get_value): Make these actually
1496 2006-06-12 Dan Winship <danw@novell.com>
1498 * configure.in: 2.2.94
1502 2006-06-12 Dan Winship <danw@novell.com>
1504 * docs/reference/client-howto.xml:
1505 * docs/reference/server-howto.xml: New client and server API
1508 * docs/reference/*: reorganize, regenerate, fill in some missing
1511 * libsoup/soup-connection.c (soup_connection_new): document the
1514 * libsoup/soup-date.h: sync prototypes to declarations for gtk-doc.
1516 * libsoup/soup-headers.c (soup_headers_parse_response): fix typo
1519 2006-06-12 Dan Winship <danw@novell.com>
1521 * libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_int,
1522 soup_xmlrpc_value_get_double): Further fixes from Brent Smith.
1524 (soup_xmlrpc_value_get_boolean): Similar fix, plus actually set
1525 the output parameter and make the return value match the other
1528 2006-06-09 Dan Winship <danw@novell.com>
1530 * configure.in: Add tests for apache, output tests/httpd.conf
1534 * tests/httpd.conf.in: Apache 2.2 config files for auth-test
1536 * tests/apache-wrapper.c (apache_init, apache_cleanup): functions
1537 to start/stop apache
1539 * tests/auth-test.c: Use apache-wrapper functions to start a local
1540 apache process to test authentication against, since the auth-test
1541 tree at developer.ximian.com went missing a long time ago. #311825
1543 * tests/Makefile.am (auth_test_SOURCES): use apache-wrapper.c
1544 (TESTS): include auth-test if HAVE_APACHE.
1546 * libsoup/soup-session.c (lookup_auth): Fix this in the case of a
1547 URI pointing to a directory rather than a file.
1549 2006-06-08 Dan Winship <danw@novell.com>
1551 * libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_int,
1552 soup_xmlrpc_value_get_double, soup_xmlrpc_value_get_boolean):
1553 Check return value of strtol/g_ascii_strtod correctly. #344222,
1554 patch from Brent Smith.
1556 2006-06-07 Dan Winship <danw@novell.com>
1558 * libsoup/soup-xmlrpc-response.c
1559 (soup_xmlrpc_response_from_string): record whether or not the
1560 response was a fault.
1561 (soup_xmlrpc_response_is_fault): test that. #343973, patch from
1564 2006-05-29 Dan Winship <danw@novell.com>
1566 * configure.in: 2.2.93
1570 2006-05-29 Dan Winship <danw@novell.com>
1572 * libsoup/soup-message-io.c (SoupMessageIOState): add a new state
1573 "FINISHING" which means "done I/O, but not yet done processing and
1574 cleanup" before "DONE" (which now always means "completely done").
1575 (soup_message_io_stop): disconnect the socket if the read state is
1576 "< FINISHING", not "!= DONE".
1577 (io_error): on an EOF-that-signals-end-of-data, set state to
1578 FINISHING and run io_read().
1579 (io_read, io_write): remove the g_return_if_fails from before.
1580 s/DONE/FINISHING/ in most places. In the FINISHING handler, stop
1581 listening for the readable/writable signal (eg, so we don't end up
1582 reading a following pipelined request), and set the state to DONE.
1583 (soup_message_io_unpause): Only reconnect the readable/writable
1584 signals if the io state isn't DONE. Guard the calls to
1585 io_read/io_write better so that it's safe to call this even after
1586 they are both DONE, since it may be easier for us to test that
1587 than for the caller to.
1589 Fixes 334469, 342640, and another bug caused by the earlier
1590 workaround to 334469. Based on patches and analysis from William
1591 Jon McCann and Armin Bauer.
1593 * tests/simple-proxy.c (main): add g_thread_init (NULL) to make
1594 this work again. (Pointed out by Alex Larsson)
1596 2006-05-26 Dan Winship <danw@novell.com>
1598 * libsoup/soup-socket.c: #include <sys/time.h> for struct timeval.
1601 * libsoup/soup-connection.c (soup_connection_connect_sync): Start
1602 SSL after CONNECTing! Doh. Part of bnc #174255.
1603 (SoupConnectionMode): new enum for the three types of
1604 SoupConnection (direct, proxy, tunnel).
1605 (set_property): set priv->mode according to proxy_uri and
1607 (socket_connect_result, soup_connection_connect_sync): use
1608 priv->mode to decide whether or not to tunnel.
1609 (send_request): Only pass TRUE for is_proxy to
1610 soup_message_send_request if mode is PROXY, not if it's TUNNEL.
1611 (Also part of bnc #174255).
1613 2006-05-26 Dan Winship <danw@novell.com>
1615 * libsoup/soup-message-io.c (soup_message_io_in_progress): tests
1616 if IO is currently in progress on a message.
1618 * libsoup/soup-session-async.c (run_queue): don't process messages
1619 that are io_in_progress. #342545, fix based on analysis from Wang
1620 Xin. (In the future we may want to re-fix this by adding a
1621 REQUEUED message status separate from QUEUED.)
1623 2006-05-22 Dan Winship <danw@novell.com>
1625 * libsoup/soup-session.c (cleanup_hosts): Don't free the hosts
1626 while holding host_lock; that's not allowed and can cause
1627 deadlock. #309867. Based on a patch from Veerapuram Varadhan for
1628 part of bnc #174255.
1630 2006-04-10 Dan Winship <danw@novell.com>
1632 * configure.in: bump version to 2.2.92
1636 2006-04-10 Dan Winship <danw@novell.com>
1638 * libsoup/soup-message-io.c (io_write, io_read): g_return_if_fail
1639 if these get called after the IO is done. This isn't supposed to
1640 happen, but apparently does. Workaround for #334469.
1642 * libsoup/soup-auth-digest.c (qop_types, algorithm_types):
1643 NULL-terminate these so we don't crash when trying to parse an
1644 invalid value. (Flip side of the previous #328615 patch.)
1646 2006-04-02 Dan Winship <danw@novell.com>
1648 * libsoup/soup-server-auth.c (soup_server_auth_context_challenge):
1649 Write out correct digest algorithm value. #328615.
1651 * libsoup/soup-headers.c (soup_headers_parse_request): Rewrite
1652 Request-Line-parsing code to not have a lame max length. #335040.
1654 * Makefile.am (install-data-local): Install the .pc file mode 644,
1657 * libsoup/soup-auth-digest.c:
1658 * libsoup/soup-auth.c:
1659 * libsoup/soup-message-client-io.c:
1660 * libsoup/soup-message-server-io.c:
1661 * libsoup/soup-message.c:
1662 * libsoup/soup-method.c:
1663 * libsoup/soup-server-auth.c:
1664 * tests/get.c: replace locale-ish strcasecmps with
1667 * libsoup/*.c: fix most signed/unsigned mismatch warnings
1669 2006-03-03 Dan Winship <danw@novell.com>
1671 * configure.in: bump version to 2.2.91.
1675 2006-03-03 Dan Winship <danw@novell.com>
1677 * libsoup/soup-dns.c (soup_dns_lookup_resolve_async): Take a
1678 GMainContext as well, and update the resolution code to dispatch
1679 each lookup result in the correct context.
1681 * libsoup/soup-address.c (soup_address_resolve_async_full): New
1682 method that takes a GMainContext to pass to
1683 soup_dns_lookup_resolve_async.
1685 * libsoup/soup-socket.c (soup_socket_connect): Use
1686 soup_address_resolve_async_full. Fixes a problem reported by Armin
1689 * configure.in: update to require glib 2.6, since apparently the
1692 2006-02-25 Veerapuram Varadhan <vvaradhan@novell.com>
1694 * libsoup/soup-connection.c:
1695 * libsoup/soup-session.c:
1696 * libsoup/soup-socket.c: add a "timeout" property,
1697 which gets passed from server to socket, and session to connection
1698 to socket, allowing blocking non-responsive sync connections to
1699 return. Combination of "EAGAIN" && "Blocking" connection is treated
1700 as error and the connection will be terminated and the control
1701 is returned to the caller immediately.
1703 2006-02-02 Tor Lillqvist <tml@novell.com>
1705 * configure.in: Don't use getaddrinfo() etc or try to support IPv6
1706 on Windows, as they are present by default on XP only. We do want
1707 to support Windows 2000, too.
1709 2005-12-21 Dan Winship <danw@novell.com>
1711 * libsoup/soup-date.c (soup_date_iso8601_parse): fix two bugs in
1714 * tests/date.c: add three more ISO 8601 cases, to exercise all the
1717 #324671, from Emmanuele Bassi
1719 2005-11-25 Dan Winship <danw@novell.com>
1721 * README: sync to text on wiki, and point to wiki
1723 * TODO: moved to http://live.gnome.org/LibSoup_2fToDo
1725 2005-11-17 Dan Winship <danw@novell.com>
1727 * libsoup/soup-message-io.c (io_cleanup): clear priv->io_data
1728 right away, to protect against this being re-entered mid-cleanup
1729 (when we unref the connection). #321208, based on a patch from
1732 2005-11-16 Dan Winship <danw@novell.com>
1734 * libsoup/soup-xmlrpc-message.c
1735 (soup_xmlrpc_message_start_member): add the "name" element to the
1736 struct member. #321362, patch from Sebastian Bauer.
1738 2005-11-10 Dan Winship <danw@novell.com>
1740 * configure.in: bump version to 2.2.90. This will not be
1741 officially released, but once these patches have gotten some
1742 testing they may be pulled up to the gnome-2-12 branch.
1744 * libsoup/soup-connection.c:
1745 * libsoup/soup-server.c:
1746 * libsoup/soup-session.c:
1747 * libsoup/soup-socket.c: add an "async-context" property,
1748 which gets passed from server to socket, and session to connection
1749 to socket, allowing async usage outside the main thread. Based on
1750 patches from Armin Bauer and Jürg Billeter.
1752 * libsoup/soup-misc.c (soup_add_io_watch, soup_add_idle,
1753 soup_add_timeout): utility routines to add watches, idles, and
1754 timeouts to non-default GMainContexts.
1756 * libsoup/soup-message-io.c (io_write): set the read state
1757 appropriately after writing a "100 Continue" response
1758 (io_read): More 100-Continue stuff. I don't think this is quite
1759 right so it will probably change again later.
1761 2005-11-01 Dan Winship <danw@novell.com>
1763 * docs/reference/libsoup-docs.sgml: tell it to generate an index
1765 * docs/reference/tmpl/*.sgml: regen with newer gtk-doc
1767 2005-11-01 Dan Winship <danw@novell.com>
1769 * libsoup/soup-connection.c (set_current_request,
1770 clear_current_request): Cast the argument to
1771 g_object_add/remove_weak_pointer to the wrong type, to make gcc
1772 4.1 happy, because C is stupid and "void **" means "a pointer to a
1773 void *", not "a pointer to any kind of pointer".
1775 * libsoup/soup-xmlrpc-response.c
1776 (soup_xmlrpc_value_dump_internal): fix gccism. #320349, from
1779 2005-10-27 Dan Winship <danw@novell.com>
1781 * libsoup/soup-socket.c (soup_socket_client_new_async,
1782 soup_socket_client_new_sync): unref the SoupAddress passed to
1783 soup_socket_connect to avoid a leak. Based on a patch from Wang
1785 (socket_read_watch, read_from_network, socket_write_watch,
1786 soup_socket_write): request and handle G_IO_ERR and G_IO_HUP
1787 events when polling, since poll() will return them whether or not
1788 you asked for them, but glib will ignore them unless you did,
1789 which will result in CPU suckage if such an error occurs. #319305,
1790 patch from Jonathan Matthew.
1792 2005-10-27 Dan Winship <danw@novell.com>
1794 bgo #316313 / bnc #116762, and probably also bgo #318252
1796 * libsoup/soup-message-io.c (soup_message_io_stop): clear io->conn
1797 after releasing it, to make sure we can't accidentally release it
1800 * libsoup/soup-connection.c (clear_current_request): Call
1801 soup_message_io_stop() on the cleared request.
1803 * libsoup/soup-connection-ntlm.c (ntlm_authorize_post): do a
1804 little dance here to make sure the session can't queue another
1805 message on the connection while we're in the process of requeuing
1808 2005-08-30 Tor Lillqvist <tml@novell.com>
1810 * libsoup-zip.in: Include documentation in developer zipfile.
1812 2005-08-22 Dan Winship <danw@novell.com>
1814 * libsoup/soup-soap-message.c (soup_soap_message_class_init): Call
1815 g_type_class_add_private.
1817 * configure.in: Bump to 2.2.6.1
1821 2005-08-22 Dan Winship <danw@novell.com>
1823 * configure.in: Bump to 2.2.6. Bump SOUP_AGE and SOUP_CURRENT for
1824 soup_server_get_socket() addition.
1828 2005-08-22 Dan Winship <danw@novell.com>
1830 * libsoup/soup-connection.c (set_current_request,
1831 clear_current_request): Fix g_object_add/remove_weak_pointer usage
1832 to prevent a crash when canceling a request. From Tambet.
1834 2005-08-16 Dan Winship <danw@novell.com>
1836 Fix a connection leak reported by Tambet.
1838 * libsoup/soup-connection.c (send_request): rather than tracking
1839 the message progress via signals, call
1840 soup_message_send_request_internal() and have it call
1841 soup_connection_release() when it's done.
1842 (request_restarted, request_done): gone
1843 (clear_current_request): handle disconnecting (if necessary) and
1844 updating last_used time here.
1845 (soup_connection_release): Call clear_current_request().
1846 (dispose): Call clear_current_request()
1848 * libsoup/soup-message-client-io.c
1849 (soup_message_send_request_internal): New. Takes a SoupConnection
1850 in addition to the other args, and passes that on to
1853 * libsoup/soup-message-io.c (SoupMessageIOData): add a
1854 SoupConnection field.
1855 (io_cleanup): if io->conn is set, unref it.
1856 (soup_message_io_stop): if io->conn is set, and we ended in a
1857 clean state, call soup_connection_release() on it.
1858 (soup_message_io_client): Add a SoupConnection arg, which gets
1859 reffed and stored in io->conn.
1861 * TODO: misc updates
1863 2005-08-15 Dan Winship <danw@novell.com>
1865 * libsoup/soup-connection.h (soup_connection_new):
1866 * libsoup/soup-server.h (soup_server_new):
1867 * libsoup/soup-session-async.h (soup_session_async_new_with_options):
1868 * libsoup/soup-session-sync.h (soup_session_sync_new_with_options):
1869 * libsoup/soup-socket.h (soup_socket_new): use G_GNUC_NULL_TERMINATED.
1871 * libsoup/soup-types.h (G_GNUC_NULL_TERMINATED): steal the
1872 definition of this from glib 2.8 for use when compiling against
1875 2005-08-15 Tambet Ingo <tambet@ximian.com>
1877 * libsoup/soup-socket.c (update_fdflags, set_property): Fix compilation
1880 * libsoup/soup-server.c (soup_server_get_listener): ditto.
1882 2005-08-12 Dan Winship <danw@novell.com>
1884 * libsoup/soup-server.c (soup_server_get_listener): new method to
1885 get the server's listening socket.
1887 * libsoup/soup-socket.c: add a new "cloexec" property, to set
1888 FD_CLOEXEC on the socket. Update everything for that.
1890 2005-08-05 Dan Winship <danw@novell.com>
1892 * libsoup/soup-socket.c (finalize): Free priv->read_buf. From
1894 (soup_socket_connect): Make sure that get_iochannel() gets called
1895 if the connect succeeds right away, or the socket will fail on
1896 the first read or write. [#312540]
1898 2005-08-01 Dan Winship <danw@novell.com>
1900 * configure.in: drop version back down to 2.2.5 and
1901 SOUP_API_VERSION back to 2.2; due to various snafus, there has
1902 never yet been an official release of the 2.4 API and the GNOME
1903 2.12 betas have been shipping with libsoup 2.2 tarballs (while
1904 jhbuild has been using 2.4, with evolution and related packages
1905 having configure hacks to build against either). As there never
1906 ended up being any API-incompatible changes in the 2.4 series, we
1907 can just merge it back into the 2.2 series and kill off 2.4.
1909 * NEWS: Copy in the 2.2-series news from the gnome-2-10 branch,
1912 * libsoup-zip.in: s/2.2/@SOUP_API_VERSION@/
1914 * libsoup/Makefile.am (libsoupincludedir, lib_LTLIBRARIES,
1915 libsoup_2_2_la_LDFLAGS, libsoup_2_2_la_LIBADD,
1916 libsoup_2_2_la_SOURCES): s/4/2/ in all the places automake won't
1917 let us use a variable.
1919 2005-08-01 Dan Winship <danw@novell.com>
1921 * libsoup/soup-md5-utils.c (soup_md5_final_hex): Finalize a
1922 SoupMD5Context and write out the digest in hex digits.
1924 * libsoup/soup-auth-digest.c (authenticate, compute_response):
1925 * libsoup/soup-server-auth.c (check_digest_passwd): Use that,
1926 rather than duplicating the code in both places here.
1928 Patch from Wim Lewis.
1930 2005-07-15 Dan Winship <danw@novell.com>
1932 * libsoup/soup-session.c (redirect_handler): Allow relative URIs,
1933 since some servers are lame. Based on a patch from Jean-Yves
1936 * tests/uri-parsing.c: add some more tests to make sure that
1937 things that should be %-escaped do get %-escaped
1939 2005-07-06 Tor Lillqvist <tml@novell.com>
1941 * libsoup/soup-date.c (soup_gmtime): Mention in the doc comment
1942 that gmtime() is thread-safe on Windows.
1943 (soup_date_generate): Use soup_gmtime() instead of gmtime_r().
1945 2005-06-14 Dan Winship <danw@novell.com>
1947 * configure.in: check for gmtime_r
1949 * libsoup/soup-date.c: date/time-manipulation functions
1951 * libsoup/soup-xmlrpc-message.c:
1952 * libsoup/soup-xmlrpc-response.c: XMLRPC message classes, from
1953 Mariano Suarez-Alvarez, Fernando Herrera, and Jeff Bailey.
1956 * tests/date.c: soup-date test code
1958 * tests/getbug.c: XMLRPC test code. (Should be switched to use
1959 bugzilla.gnome.org once bgo supports XMLRPC.)
1961 * TODO: XMLRPC is implemented now (but shares the problem with
1962 SOAP that the API is not very good).
1964 2005-06-14 Dan Winship <danw@novell.com>
1966 * libsoup/*.[ch]: add/fix gtk-doc comments, make functions match
1969 * docs/reference/*: update, fix, etc
1971 2005-06-13 Tor Lillqvist <tml@novell.com>
1973 * configure.in: Check also for inet_ntop(). Pre-cache knowledge
1974 that we do have inet_pton() and inet_ntop() on Windows (because we
1975 implement them ourselves in soup-dns.c).
1977 * libsoup/soup-dns.c (inet_pton, inet_ntop): Fix the Win32
1978 implementations, they were completely bogus.
1979 (soup_dns_ntop): Make it compile if HAVE_INET_NTOP.
1981 2005-06-08 Dan Winship <danw@novell.com>
1983 * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Fix this to
1984 use just the domain name for the domain, not the whole
1985 DOMAIN\username. Based on a patch by Jeroen Hautekeete in #306877.
1987 2005-05-26 Dan Winship <danw@novell.com>
1989 * libsoup/soup-session.c (cleanup_hosts): lock host_lock around
1990 this, since it can be called from set_property(). Possible fix for
1993 2005-05-05 Dan Winship <danw@novell.com>
1995 * docs/reference/Makefile.am (SCANGOBJ_OPTIONS): Use
1996 --type-init-func to force g_thread_init to be called. [#302674]
1998 2005-04-18 Tor Lillqvist <tml@novell.com>
2000 * configure.in: Call AC_LIBTOOL_WIN32_DLL. Check for Win32, set
2001 Automake conditional OS_WIN32. Pre-cache information that we do
2002 have getaddrinfo(), getnameinfo(), and IPv6 on Win32. (The tests
2003 wouldn't notice as they don't include the necessary headers or
2004 link with -lws2_32. Easiest to just pre-cache it.)
2006 * libsoup-zip.in: New file, to build zipfile-based distribution of
2009 * Makefile.am (EXTRA_DIST)
2010 * configure.in (AC_OUTPUT): Add libsoup-zip(.in).
2012 * libsoup/Makefile.am: Use -no-undefined on Win32. Link with
2013 WinSock library -lws2_32.
2015 * libsoup/soup-portability.h: New file. On Unix it includes the
2016 traditional BSD socket etc headers. On Win32 it includes
2017 winsock2.h and ws2tcpip.h.
2020 * libsoup/*.h: Correspondingly, don't include the BSD socket API
2023 * libsoup/soup-address.h
2024 * libsoup/soup-dns.h: Include soup-portability.h
2026 * libsoup/soup-address.c (soup_address_class_init): This function
2027 should get called before libsoup uses the WinSock API, so this is
2028 a good place to call WSAStartup().
2030 * libsoup/soup-auth-digest.c (get_protection_space): Use
2031 g_strsplit() instead of the relatively unportable strtok_r().
2033 * libsoup/soun-dns.c: Remove unused headers. Implement
2034 inet_pton() and inet_ntop() on Win32 using WSAStringToAddress()
2035 and WSAAddressToString().
2037 * libsoup/soup-socket.c (SOUP_CLOSE_SOCKET, SOUP_IS_SOCKET_ERROR,
2038 SOUP_IS_INVALID_SOCKET, SOUP_IS_CONNECT_STATUS_INPROGRESS):
2040 (soup_socket_class_init): Call soup_address_get_type() to make
2041 sure WSAStartup() gets called (through soup_address_class_init()).
2042 (update_fdflags): Use ioctlsocket(FIONBIO) on Win32.
2043 (soup_socket_write): Conditionalize SIGPIPE use.
2045 * tests/get.c: mkdir() is different in Microsoft's C library.
2047 * tests/simple-httpd.c: Rename TRY_AGAIN label to AGAIN to avoid
2048 some clash with winsock2.h (which includes windows.h). The Win32
2049 headers pollute the namespace wildly.
2051 2005-04-15 Dan Winship <danw@novell.com>
2053 * libsoup/soup-dns.c (resolve_name): make this work with
2054 pre-EAI_OVERFLOW glibc [#300620]
2056 2005-04-12 Dan Winship <danw@novell.com>
2058 * configure.in: Remove the various gethostbyname_r checks and just
2059 check for getnameinfo/getaddrinfo.
2061 * libsoup/soup-dns.c: de-nastify. Make this use threads instead of
2062 forking. Change the API around a bunch in the process.
2064 * libsoup/soup-address.c: Update for soup-dns changes
2066 * tests/dns.c: take multiple hostnames on the command line and
2067 resolve them all at once (patch from tml)
2069 2005-04-11 Dan Winship <danw@novell.com>
2071 * configure.in: require glib-2.0 >= 2.4.0
2073 * libsoup/*.c: use G_DEFINE_TYPE and
2074 g_type_class_add_private/G_TYPE_INSTANCE_GET_PRIVATE
2076 * libsoup/soup-types.h: kill SOUP_MAKE_TYPE and
2077 SOUP_MAKE_TYPE_WITH_IFACE
2079 * tests/revserver.c: use GThread. (patch from tml)
2081 2005-04-11 Dan Winship <danw@novell.com>
2083 * configure.in: bump version to 2.3.0. bump SOUP_API_VERSION to
2086 * libsoup.pc.in: rename from libsoup-2.2.pc.in
2088 * Makefile.am (EXTRA_DIST, pkgconfig_DATA, install-data-local):
2089 install the .pc file by hand, renaming it to include the
2092 * libsoup/Makefile.am: s/2.2/2.4/
2094 2005-03-09 Dan Winship <danw@novell.com>
2096 * libsoup/soup-gnutls.c (soup_gnutls_read): return G_IO_STATUS_EOF
2097 if gnutls returns 0. [#73352]
2098 (verify_certificate): put an #ifdef around
2099 GNUTLS_CERT_NOT_TRUSTED so it works with gnutls 1.2.x. [#57811]
2101 2005-01-08 Not Zed <NotZed@Ximian.com>
2103 ** See ximian bug #70323.
2105 * libsoup/soup-connection-ntlm.c: replace all unsigned long/long
2106 types with guint32, as the code needs 32 bit longs.
2108 2004-10-20 Dan Winship <danw@novell.com>
2110 * libsoup/soup-gnutls.c: Commit the alleged changes from the 10-06
2111 commit, which somehow did not actually get committed then.
2113 * libsoup/soup-connection.c (SoupConnectionPrivate): add a flag
2114 indicating whether or not the connection is connected.
2115 (tunnel_connect_finished): If successful, set connected. If the
2116 server returns a 3xx response, translate it to 407 (under the
2117 assumption that it's trying to redirect us to an HTML login page,
2118 as in bug 68531). Use soup_socket_start_proxy_ssl() rather than
2119 soup_socket_start_ssl().
2120 (socket_connect_result, soup_connection_connect_sync): If
2121 successful, set connected
2122 (soup_connection_disconnect): Don't emit "disconnected" if we
2123 aren't yet connected, or the message that was waiting for this
2124 connection may get stranded in the queue. (also part of 68531)
2126 * libsoup/soup-socket.c (soup_socket_start_proxy_ssl): New, starts
2127 SSL and lets the caller pass the expected hostname. Fixes a
2128 problem where SSL certification validation would always fail if
2129 you used a proxy, because it was comparing the cert against the
2130 proxy's hostname. (68583)
2132 2004-10-06 Dan Winship <danw@novell.com>
2134 * libsoup/soup-ssl.h (SoupSocketError): add
2135 SOUP_SSL_ERROR_CERTIFICATE.
2137 * libsoup/soup-gnutls.c (do_handshake): Pass the GError to
2139 (verify_certificate): Set the GError appropriately rather than
2142 * libsoup/soup-socket.c (read_from_network, soup_socket_write): If
2143 the GIOChannel operation returns an error, store it as GOBject
2144 data on the socket (as a hack so soup-message-io.c can access it
2145 without us needing to change SoupSocket's API).
2147 * libsoup/soup-message-io.c (io_error): peek at the socket's
2148 "last_error" datum and set the message's status to SSL_FAILED
2149 (with the GError's message string) rather than IO_ERROR, if
2150 appropriate. For 64414.
2152 2004-09-30 Dan Winship <danw@novell.com>
2154 * libsoup/soup-gnutls.c (soup_gnutls_init): Add this, with some
2155 extra initialization needed for libgcrypt 1.2 or higher. Fixes
2157 (soup_ssl_get_client_credentials,
2158 soup_ssl_get_server_credentials): Call soup_gnutls_init().
2160 2004-08-26 Dan Winship <danw@novell.com>
2162 * configure.in: Bump version to 2.2.0.
2164 * AUTHORS: Update this to reflect the last 2 years.
2166 * NEWS: Brief summary of 1.99.x -> 2.2 changes
2168 * README, TODO: Updates
2170 2004-08-26 Dan Winship <danw@novell.com>
2172 * libsoup/*: add/fix lots of gtk-doc comments
2174 * libsoup/soup-misc.c (soup_str_case_hash, soup_str_case_equal):
2175 Fix bug noticed while documenting. (We were using the
2176 locale-case-insensitive functions rather than the g_ascii_ ones.)
2178 * libsoup/soup-message.h (SoupMessageFlags): remove the (never
2179 implemented) NO_PIPELINE and NO_COOKIE flags.
2181 * docs/reference/tmpl/*.sgml: Regenerate, fill in some stuff.
2182 There are still problems here with gtk-doc not recognizing many of
2183 the objects in libsoup...
2185 2004-08-13 JP Rosevear <jpr@novell.com>
2187 * configure.in: bump version, libtool number
2189 2004-08-09 Dan Winship <danw@novell.com>
2191 * libsoup/soup-connection.c (soup_connection_connect_sync): Don't
2192 use conn after emitting the "connect_result" signal, since it
2193 might be destroyed by that. Based on a patch from hpj.
2195 2004-08-02 Dan Winship <danw@novell.com>
2197 * libsoup/soup-uri.h: Add flag "broken_encoding" to SoupUri.
2199 * libsoup/soup-uri.c: (soup_uri_to_string): if broken_encoding is
2200 set, don't re-encode the URL parts. Based on a patch by
2201 Alfred.Peng@Sun.COM.
2203 2004-07-19 JP Rosevear <jpr@novell.com>
2205 * configure.in: bump version, libtool number
2207 2004-07-15 Dan Winship <danw@novell.com>
2209 * libsoup/soup-session-sync.c (send_message): Simplify this. If
2210 the message comes back from soup_connection_send_request not
2211 FINISHED, get a new connection rather than reusing the old one.
2212 This fixes a race condition in which a connection could end up
2213 double-booked, and fixes the handling of messages that get
2214 redirected to another server.
2216 2004-07-13 Dan Winship <danw@novell.com>
2218 * libsoup/soup-session.c (connect_result): If the connection
2219 attempt succeeded, reserve the connection before releasing
2220 host_lock. Otherwise, another thread might find it in the
2221 connection pool before the caller can queue a message on it.
2224 * libsoup/soup-session-async.c (got_connection): Call
2225 soup_connection_release(), since we don't have a specific message
2226 in mind for the connection, so we need it to be considered idle.
2228 * libsoup/soup-connection.c (soup_connection_release): New
2229 function, to undo a soup_connection_reserve().
2230 (soup_connection_send_request, soup_connection_reserve,
2231 soup_connection_authenticate, soup_connection_reauthenticate):
2234 2004-07-12 Dan Winship <danw@novell.com>
2236 * libsoup/soup-session-sync.c (send_message): signal the
2237 "connections available" condition after the message finishes. Duh.
2239 * libsoup-2.2.pc.in (Cflags, Libs): add XML_CFLAGS and XML_LIBS
2241 2004-07-08 Dan Winship <danw@novell.com>
2243 * libsoup/soup-soap-response.c: Revert previous change for now; it
2244 breaks the build on distros with older libxmls.
2246 2004-07-08 Dan Winship <danw@novell.com>
2248 * tests/dict.c: Basic SOAP test, using Aonaware's SOAP->DICT
2251 2004-07-07 Fernando Herrera <fherrera@onirica.com>
2253 * libsoup/soup-soap-response.c: (finalize), (init),
2254 (soup_soap_response_from_string): Use a parse context for the
2255 xml document, so we can safely use the option to ignore
2256 blank spaces and '\n'.
2258 2004-07-06 Dan Winship <danw@novell.com>
2260 * libsoup/soup-uri.c (soup_uri_new_with_base): if the protocol is
2261 http or https, require a hostname. For #61049
2263 * tests/uri-parsing.c (rel_tests, do_uri): Update for that
2265 2004-06-03 JP Rosevear <jpr@novell.com>
2267 * configure.in: bump version to 2.1.11, libtool number
2269 2004-06-01 Dan Winship <danw@novell.com>
2271 * libsoup/soup-address.c: Redo the various IPv4/IPv6-abstracting
2272 macros to not use ?: expressions as lvalues, since that's
2273 apparently a GNU extension.
2274 (soup_address_resolve_async): Use a timeout rather than an idle
2275 handler to poll the dns result. (soup-dns really should be
2276 rewritten to not require polling, but this is easier for now.)
2279 * libsoup/soup-server.c (call_handler): Don't use GNU-only
2280 non-constant structure initialization
2282 * tests/dns.c: Simple test of the dns code
2284 * tests/Makefile.am (noinst_PROGRAMS): build it
2286 2004-05-19 JP Rosevear <jpr@novell.com>
2288 * configure.in (SOUP_API_VERSION): bump version, libtool numbers
2290 2004-05-18 Dan Winship <danw@novell.com>
2292 * libsoup/soup-ssl.h:
2293 * libsoup/soup-nossl.c: define some GError codes and stuff
2295 * libsoup/soup-gnutls.c: add missing #include <gnutls/x509.h>
2296 (do_handshake): when returning G_IO_STATUS_AGAIN, set the GError
2297 to SOUP_SSL_ERROR_HANDSHAKE_NEEDS_READ or _NEEDS_WRITE
2300 * libsoup/soup-socket.c (soup_socket_write): Handle
2301 SOUP_SSL_ERROR_HANDSHAKE_NEEDS_READ, by setting an io watch for
2302 G_IO_IN instead of G_IO_OUT. Fixes the rcd-sucking-up-all-cpu bug
2304 (read_from_network): Handle the reverse case (which would cause
2305 hanging rather than spinning, and might be the cause of some
2306 connector 1.5 slowness?)
2308 2004-05-11 Dan Winship <danw@novell.com>
2310 * libsoup/soup-misc.c (soup_signal_connect_once): Do this less
2311 kludgefully, using the magic of GClosure, to fix x86_64 problems
2314 2004-05-04 Sivaiah Nallagatla <snallagatla@novell.com>
2316 * libsoup/soup-soap-message.c (finalize) : free
2317 the elements of priv structure before freeing priv
2319 2004-04-20 Dan Winship <danw@ximian.com>
2321 * libsoup/soup-connection-ntlm.c (ntlm_authorize_post): if
2322 re-sending the message, call soup_message_restarted()
2323 (send_request): Connect to "restarted" signal, and remove the 401
2324 handlers from there; doing it here didn't work because if the
2325 connection was closed, the message would be re-sent on a new
2326 connection, but would still have the handlers from the old
2327 connection attached to it, which would make authentication fail.
2329 * libsoup/soup-message-handlers.c (soup_message_run_handlers):
2330 Copy the handler list before starting, to protect against handlers
2331 that modify the handler list.
2333 2004-04-15 Dan Winship <danw@ximian.com>
2335 * libsoup/soup-connection.c (soup_connection_connect_sync):
2336 Connect to the socket's "disconnect" signal. (We were only doing
2337 this from the async version before, which meant that synchronous
2338 SoupConnections could outlive their sockets and start causing
2341 * libsoup/soup-connection-ntlm.c (send_request): Remove the old
2342 Authorization header before adding a new one.
2344 2004-04-02 JP Rosevear <jpr@ximian.com>
2346 * configure.in: bump version, libtool number
2348 2004-03-15 Dan Winship <danw@ximian.com>
2350 * libsoup/soup-soap-message.c (soup_soap_message_persist): Fix up
2351 types to kill a warning with -Wall -O2
2353 2004-03-05 JP Rosevear <jpr@ximian.com>
2355 * configure.in: bump version, libtool number
2357 2004-03-02 Dan Winship <danw@ximian.com>
2359 * libsoup/soup-dns.c (check_hostent): Only loop on EINTR if
2360 bytes_read is -1, since the value of errno is irrelevant when
2361 bytes_read is 0. Probably #54960.
2363 2004-03-01 Rodrigo Moya <rodrigo@ximian.com>
2365 * libsoup/soup-soap-response.h: removed not-implemented function's
2368 2004-02-27 Rodney Dawes <dobey@ximian.com>
2371 * libsoup/Makefile.am: Use a different variable for linking to the
2372 static version of gnutls, so we don't pull the .a files into the .pc
2376 2004-02-20 Dan Winship <danw@ximian.com>
2378 * libsoup/soup-message-io.c (read_metadata, read_body_chunk,
2379 write_data): Pass gsize *, not guint *, to soup_socket_read/write,
2380 to make this work on 64-bit platforms. (Grr. C type checking
2383 * tests/revserver.c: Likewise
2385 2004-02-18 Rodrigo Moya <rodrigo@ximian.com>
2389 * libsoup/soup-soap-response.c (soup_soap_parameter_get_int_value):
2390 don't leak the value returned from xmlNodeGetContent().
2391 (soup_soap_parameter_get_string_value,
2392 soup_soap_parameter_get_property): return a g_strdup'ed
2393 string, not the value returned by xmlNodeGetContent, so that
2394 callers can use g_free, and not xmlFree.
2396 * libsoup/soup-soap-response.h: made soup_parameter_get_property
2399 2004-02-17 Dan Winship <danw@ximian.com>
2401 * libsoup/soup-soap-message.h (SOUP_IS_SOAP_MESSAGE_CLASS): Fix a
2402 typo. #54433, from Mariano Suarez-Alvarez.
2404 * libsoup/soup-soap-response.h (SOUP_IS_SOAP_RESPONSE_CLASS):
2407 2004-02-17 Rodney Dawes <dobey@ximian.com>
2409 * libsoup/soup-message.c (soup_message_new): HTTP connections require
2410 a hostname, and we also hash on the host for message queueing in the
2411 session, if the host is NULL we free the SoupUri and return NULL
2413 2004-02-14 Dan Winship <danw@ximian.com>
2415 * configure.in: Use POSIX-compliant "test $foo = bar", rather than
2416 GNU-only "test $foo == bar". #54354, from Julio M. Merino Vidal.
2418 2004-02-12 Joe Shaw <joe@ximian.com>
2420 * libsoup/soup-dns.c (check_hostent): Call read() in a do-while
2421 loop to prevent DNS errors from short reads.
2423 2004-02-11 Joe Shaw <joe@ximian.com>
2425 * configure.in: Bumped version number to 2.1.7 and libtool
2428 2004-02-11 Dan Winship <danw@ximian.com>
2430 * libsoup/soup-connection.c (soup_connection_disconnect): Update
2431 Joe's comment here with a gory explanation of exactly what's going
2432 on. (It's not just an SSL bug either, it affects all connections.)
2434 2004-02-10 Joe Shaw <joe@ximian.com>
2436 * libsoup/soup-connection.c (soup_connection_disconnect): Add a
2437 workaround for SSL connections which time-out but don't close the
2438 socket until we try sending data again later.
2440 * libsoup/soup-socket.c (soup_socket_connect, soup_socket_listen):
2441 Don't free the sockaddr from soup_address_get_sockaddr(); we don't
2442 own it, the SoupAddress does.
2444 2004-02-09 JP Rosevear <jpr@ximian.com>
2446 * configure.in: Bump libtool numbers
2448 2004-02-05 Dan Winship <danw@ximian.com>
2450 * libsoup/soup-session.c (soup_session_add_filter): Ref the filter
2452 (soup_session_remove_filter): And unref it here (we were already
2453 unreffing it in dispose().)
2455 2004-02-05 Joe Shaw <joe@ximian.com>
2457 * libsoup/soup-dns.c (soup_dns_entry_unref): Don't try to free the
2458 hostent if it's NULL.
2459 (soup_dns_entry_check_lookup): If the entry is resolved, but the
2460 hostent is NULL, uncache it.
2462 2004-02-04 Dan Winship <danw@ximian.com>
2464 * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Always
2465 remove the WWW-Authenticate headers before returning, so the
2466 session won't fall back to Basic auth. Also, leave the connection
2467 in the "authenticating" state rather than setting it to
2469 (ntlm_authorize_post): Only requeue the message if it's in the
2470 "authenticating" state (and set it to "authenticated"). Fixes an
2471 "unepectedly disconnected" error if authentication fails.
2473 2004-02-03 Dan Winship <danw@ximian.com>
2475 * libsoup/soup-message-io.c (io_cleanup): Call
2476 soup_message_io_stop so we don't get a callback on the io after
2477 it's been cleaned up.
2479 * libsoup/soup-session.c (add_auth): Only remove the Authorization
2480 header if we have another one to add. (Otherwise it messes up
2481 SoupConnectionNTLM.)
2483 * libsoup/soup-socket.c (read_from_buf): Use memmove rather than
2484 memcpy here, since the source and destination will overlap if
2485 *nread is small and read_buf->len is large. (Noticed by valgrind,
2488 2004-02-02 Joe Shaw <joe@ximian.com>
2490 * libsoup/soup-gnutls.c (soup_gnutls_close): Call gnutls_bye()
2491 with the GNUTLS_SHUT_WR flag (instead of RDWR) and check only for
2492 GNUTLS_E_INTERRUPTED. GNUTLS_E_AGAIN will be returned by recv()
2493 when there are no messages on the wire on a non-blocking socket.
2494 This sends a SSL hangup message and then allows us to immediately
2497 2004-01-30 Rodrigo Moya <rodrigo@ximian.com>
2499 * configure.in: bumped version number to 2.1.6.
2501 2004-01-29 Rodrigo Moya <rodrigo@ximian.com>
2503 * libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_property):
2506 2004-01-29 Rodrigo Moya <rodrigo@ximian.com>
2508 * libsoup/soup-soap-response.[ch]
2509 (soup_soap_parameter_get_string_value): removed 'const' from return
2512 2004-01-29 Joe Shaw <joe@ximian.com>
2514 * libsoup/soup-gnutls.c (verify_certificate): Initialize the
2515 certificate before we try to use it. Ahem.
2517 2004-01-23 Joe Shaw <joe@ximian.com>
2519 * configure.in: Bump version to 2.1.5 and SOUP_RELEASE to 2
2521 2004-01-21 Joe Shaw <joe@ximian.com>
2523 * configure.in: Require at least GnuTLS 1.0.0.
2525 * libsoup/soup-gnutls.c: Fix the use of deprecated GnuTLS
2527 (verify_certificate): Use gnutls_x509_crt_import() and
2528 gnutls_x509_crt_check_hostname() instead of
2529 gnutls_x509_check_certificates_hostname().
2530 (init_dh_params): Use gnutls_dh_params_generate2() instead of
2531 gnutls_dh_params_generate() and gnutls_dh_params_set().
2533 2004-01-20 Joe Shaw <joe@ximian.com>
2535 * libsoup/soup-gnutls.c (soup_gnutls_close): gnutls_bye() doesn't
2536 close the socket itself, so we need to do it or else our
2537 connections stay in CLOSE_WAIT forever.
2539 2004-01-16 Jason Leach <leach@wam.umd.edu>
2541 * libsoup/Makefile.am: builddir != srcdir fixes.
2543 2004-01-14 Joe Shaw <joe@ximian.com>
2545 * libsoup/soup-gnutls.c (verify_certificate): Remove the
2546 check for GNUTLS_CERT_CORRUPTED, it's not in 1.0.x.
2548 2004-01-12 JP Rosevear <jpr@ximian.com>
2550 * configure.in: bump version and libtool revision
2552 2004-01-12 Dan Winship <danw@ximian.com>
2554 * tests/simple-httpd.c (main): Add a g_thread_init() so this works
2557 2004-01-10 Larry Ewing <lewing@ximian.com>
2559 * libsoup-2.2.pc.in (Libs): use LIBGNUTLS_LIBS in the substitution
2562 2004-01-09 Joe Shaw <joe@ximian.com>
2564 * acinclude.m4: Include the libgnutls.m4 file.
2566 * configure.in: Remove manual checking for libgnutls-config and
2567 use the AM_PATH_LIBGNUTLS so we can pass in a minimum required
2568 version, which is 0.9.7 for now.
2570 * libsoup/Makefile.am: Some changes for the above change.
2572 * libsoup/soup-gnutls.c: Check for HAVE_SSL, not
2573 HAVE_GNUTLS_GNUTLS_H.
2574 (verify_certificate): Uncomment the SSL certificate hostname
2577 * libsoup/soup-session.c (set_property): Be smart about flushing
2578 our SSL credentials only when the CA file is set to something
2579 different than it was before.
2581 2004-01-09 Harish K <kharish@novell.com>
2582 * libsoup/soup-soap-response.c (soup_soap_response_from_string):
2583 added code to ignore Header element, if present, while creating
2586 2004-01-05 Dan Winship <danw@ximian.com>
2588 * configure.in: Remove no-longer-relevant socklen_t check
2590 * libsoup/soup-address.c: Reorder #includes for FreeBSD (From Joe
2591 Marcus Clarke, #52566)
2593 * libsoup/soup-dns.c: Likewise
2595 2003-12-29 JP Rosevear <jpr@ximian.com>
2597 * configure.in: bump version and libtool numbers
2599 2003-12-22 Dan Winship <danw@ximian.com>
2601 * README, TODO: Update these
2603 2003-12-22 Dan Winship <danw@ximian.com>
2605 * libsoup/soup-socket.c: Lots of thread-safety stuff, primarly so
2606 you can disconnect a socket from one thread while doing I/O in
2609 * libsoup/soup-message-io.c (soup_message_io_cancel): Split into
2610 soup_message_io_stop() and io_cleanup(), to separate out the "stop
2611 reading/writing" and "free data" phases to allow thread-safe
2612 synchronous cancellation.
2613 (soup_message_io_finished): call both soup_message_io_stop() and
2615 (io_error): Only set SOUP_STATUS_IO_ERROR on the message if it
2616 doesn't already have a transport error status (eg, CANCELLED).
2617 (new_iostate): Call io_cleanup() if needed.
2619 * libsoup/soup-status.h: add "SOUP_STATUS_NONE" for 0, to make it
2620 clearer that it's not a status.
2622 * libsoup/soup-message.c (finalize, restarted, finished,
2623 soup_message_set_uri): s/soup_message_io_cancel/soup_message_io_stop/
2624 (soup_message_cleanup_response): s/0/SOUP_STATUS_NONE/
2626 * libsoup/soup-connection.c (send_request): Remove
2627 soup_message_io_cancel call.
2629 * libsoup/soup-session-sync.c (send_message): Connect to the
2630 connection's "disconnected" signal rather than using a weak ref,
2631 since that's what we really care about, and it's possible that the
2632 connection may have an extra ref on it somewhere that would keep
2633 it from being destroyed even if it was disconnected.
2635 2003-12-20 Joe Shaw <joe@ximian.com>
2637 * libsoup/soup-session.c (lookup_auth): If const_path is NULL un
2638 the non-proxy case, then use the root ("/").
2640 2003-12-19 Dan Winship <danw@ximian.com>
2642 * libsoup/soup-message-filter.c: New. An interface for objects
2643 that want to act on every message passing through a session.
2644 (Initially being used for authentication, but could also be used
2645 for cache handling, cookie management, etc.)
2647 * libsoup/soup-connection.c (class_init, etc): Add a message
2649 (send_request): If the connection has a message filter set, run
2650 it on the message before sending it.
2651 (soup_connection_connect_async, etc): When setting up a tunnel, if
2652 we get back a 407 and the session tries to requeue the message,
2653 either re-send it, or return SOUP_STATUS_TRY_AGAIN (depending on
2654 whether or not the proxy closed the connection).
2655 (soup_connection_connect_sync): Likewise
2656 (send_request, request_done): Ref/unref the connection
2658 * libsoup/soup-session.c (soup_session_get_type): Implement the
2659 SoupMessageFilter interface.
2660 (soup_session_get_connection): Use the session as the connection's
2662 (soup_session_add_filter, soup_session_remove_filter): Add/remove
2663 filters from the session
2664 (setup_message): do auth handling, and call each of the session's
2665 filters' setup_message methods as well.
2666 (soup_session_send_message_via): No longer needed.
2667 (connect_result): Handle SOUP_STATUS_TRY_AGAIN.
2669 * libsoup/soup-session-async.c (run_queue): Use
2670 soup_connection_send_request, since soup_session_send_message_via
2673 * libsoup/soup-session-sync.c (send_message): Likewise
2675 * libsoup/soup-message.c (soup_message_is_keepalive): A successful
2676 response to a CONNECT is always keepalive, even if it's HTTP/1.0
2677 with no Connection header.
2679 * libsoup/soup-status.h: add SOUP_STATUS_TRY_AGAIN
2681 * libsoup/soup-types.h: Add SoupMessageFilter, and macros for
2682 gobject interface types.
2684 * tests/get.c (main): Add a -p flag to specify a proxy
2686 * tests/simple-proxy.c: Fix #includes
2688 2003-12-18 Dan Winship <danw@ximian.com>
2690 * libsoup/soup-connection.c (soup_connection_disconnect): Actually
2691 disconnect the socket rather than just unreffing it, since the IO
2692 code may be holding an extra ref on it.
2693 (send_request): connect to the "restarted" signal too
2694 (request_restarted): Deal with "Connection: close"
2696 * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Make this
2697 not go into an infinite loop if the server only supports Basic.
2699 2003-12-17 Rodrigo Moya <rodrigo@ximian.com>
2701 * libsoup/Makefile.am: install soup-message-queue.h with the rest
2704 2003-12-17 Dan Winship <danw@ximian.com>
2706 * configure.in: Add gthread to glib check
2708 * libsoup/soup-session.c: Make this an abstract class.
2710 * libsoup/soup-session-async.c: A SoupSession class for
2711 asynchronous gmain-based operation; replaces the old SoupSession.
2713 * libsoup/soup-session-sync.c: A SoupSession class for synchronous
2714 blocking operation for use with threaded apps.
2716 * libsoup/soup-types.h, libsoup/soup.h: add the new session
2719 * libsoup/soup-connection.c (soup_connection_connect_sync): Don't
2720 try to unref the socket if the socket creation fails.
2721 (soup_connection_reserve): New, to explicitly mark a connection as
2722 being in use without queueing a message on it.
2724 * libsoup/soup-dns.c (check_hostent): Oof. Fix the logic of the
2725 "block" flag to not be reversed.
2727 * libsoup/soup-message.c (finished): set status to FINISHED here.
2728 (soup_message_cancel): Gone; needs to be done at the session
2731 * libsoup/soup-message-queue.c: Add a mutex and make all of the
2732 operations thread-safe.
2734 * libsoup/soup-socket.c (disconnect_internal): Make this
2736 (soup_socket_connect): Make the sync case work correctly.
2738 * libsoup/Makefile.am: add the SoupSession subclasses
2740 * tests/Makefile.am: libsoup depends on libgthread now, so
2741 revserver doesn't need to explicitly.
2743 * tests/get.c, tests/auth-test.c, tests/simple-proxy.c: Use
2744 soup_session_async_new().
2746 2003-12-16 Rodrigo Moya <rodrigo@ximian.com>
2748 * libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_int_value):
2751 2003-12-16 Joe Shaw <joe@ximian.com>
2753 * libsoup/soup-connection.c (socket_connect_result,
2754 soup_connection_connect_sync): Only set up a tunnel if the
2755 destination protocol is HTTPS.
2757 * libsoup/soup-message.c (class_init): Add a default handler for
2759 (wrote_body): Run the SOUP_HANDLER_POST_REQUEST handlers here.
2760 (soup_message_cancel): Don't set the status to
2761 SOUP_STATUS_CANCELLED and call soup_message_finished() if the
2762 status is already SOUP_MESSAGE_STATUS_FINISHED.
2764 * libsoup/soup-session.c (set_property): Don't cancel the session
2765 if the proxy URI set as a property isn't different from the old
2767 (get_host_for_message): Refactor some code so that we can easily
2768 get the right SoupSessionHost for proxies as well as from the
2770 (authenticate_auth): Take a gboolean proxy parameter. Check it to
2771 see which URI (message URI or proxy URI) to use for
2772 authentication. Add a long comment about lack of clarity in RFC
2773 2617 with respect to proxies and protection spaces.
2775 2003-12-15 Dan Winship <danw@ximian.com>
2777 * libsoup/soup-socket.h (soup_socket_read, soup_socket_read_until,
2778 soup_socket_write): s/guint/gsize/ to match the definitions in
2779 soup-socket.c. #52167.
2781 2003-12-12 Rodrigo Moya <rodrigo@ximian.com>
2783 * libsoup/soup-soap-message.c: removed debugging of the messages here.
2785 2003-12-12 Rodrigo Moya <rodrigo@ximian.com>
2787 * libsoup/soup-soap-message.c (soup_soap_message_start_envelope):
2788 added information for SOAP-ENV namespace.
2790 2003-12-10 Dan Winship <danw@ximian.com>
2792 * libsoup/soup-message-client-io.c (parse_response_headers): if we
2793 receive an HTTP/1.0 response to an HTTP/1.1 request, downgrade the
2794 message's http_version so the keep-alive handling is correct.
2795 Fixes a problem noticed almost simultaneously by Rodrigo and Joe.
2797 * libsoup/soup-message.c (soup_message_restarted, etc): Add a
2798 "restarted" signal as suggested by Joe.
2800 * libsoup/soup-message-io.c (soup_message_io_finished): emit
2801 either "restarted" or "finished" as appropriate
2803 * libsoup/soup-session.c (soup_session_queue_message): Connect to
2804 "restarted" and run the queue if a message gets restarted
2806 * libsoup/soup-status.h: Remove a stray comma that gtk-doc doesn't
2809 2003-12-10 Tambet Ingo <tambet@ximian.com>
2811 * configure.in: Use autoconfig to check for socklen_t ...
2813 * libsoup/soup-address.c: ... and remove it from here ...
2815 * libsoup/soup-dns.c: ... and here.
2817 2003-12-09 Rodrigo Moya <rodrigo@ximian.com>
2819 * libsoup/soup-soap-message.c (soup_soap_message_persist):
2820 (soup_soap_message_parse_response): print out request/response's
2821 contents, if in debug mode.
2823 2003-12-07 JP Rosevear <jpr@ximian.com>
2825 * configure.in: Bump version
2827 2003-11-28 Rodrigo Moya <rodrigo@ximian.com>
2829 * libsoup/soup-soap-response.[ch]
2830 (soup_soap_parameter_get_first_child,
2831 soup_soap_parameter_get_first_child_by_name,
2832 soup_soap_parameter_get_next_child,
2833 soup_soap_parameter_get_next_child_by_name): new functions to
2834 manage SoupSoapParameter's children.
2835 (soup_soap_response_get_first_parameter): dont return a GList, but
2836 a SoupSoapParameter contained in the GList.
2838 2003-11-26 Rodrigo Moya <rodrigo@ximian.com>
2840 * libsoup/soup-soap-response.[ch]
2841 (soup_soap_parameter_get_string_value): new function.
2843 2003-11-26 Rodrigo Moya <rodrigo@ximian.com>
2845 * libsoup/soup-soap-response.[ch]: added SoupSoapParameter
2846 structure, to "hide" the usage of xmlNode's.
2847 (soup_soap_parameter_get_name): functions to manage SOAP
2848 response parameters.
2849 (soup_soap_response_get_first_parameter,
2850 soup_soap_response_get_first_parameter_by_name,
2851 soup_soap_response_get_next_parameter,
2852 soup_soap_response_get_next_parameter_by_name):
2853 new functions for an easy access to the response's parameters.
2854 (soup_soap_response_from_string): removed warnings.
2856 2003-11-25 Rodrigo Moya <rodrigo@ximian.com>
2858 * libsoup/soup-soap-response.c (soup_soap_response_set_method_name):
2861 2003-11-25 Rodrigo Moya <rodrigo@ximian.com>
2863 * libsoup/soup-soap-response.[ch] (soup_soap_response_get_method_name,
2864 soup_soap_response_set_method_name, soup_soap_message_get_parameters):
2866 (finalize): NULL out new private fields.
2867 (soup_soap_response_from_string): added validation code.
2869 2003-11-23 Rodrigo Moya <rodrigo@ximian.com>
2871 * libsoup/soup-soap-response.[ch]: new class for managing SOAP
2874 * libsoup/soup-soap-message.[ch] (soup_soap_message_parse_response):
2877 * libsoup/Makefile.am: added new files.
2879 2003-11-18 Rodney Dawes <dobey@ximian.com>
2881 * gtk-doc.make: Add gtk-doc.make to cvs for systems without gtk-doc
2883 2003-11-18 Rodney Dawes <dobey@ximian.com>
2885 * acinclude.m4: Add GTK_DOC_CHECK
2887 2003-11-18 Dan Winship <danw@ximian.com>
2889 * configure.in: Replace old gtk-doc test with GTK_DOC_CHECK()
2890 (AC_OUTPUT): add docs/Makefile, docs/reference/Makefile
2892 * autogen.sh (REQUIRED_AUTOMAKE_VERSION): 1.6, for gtk-doc.make
2894 * Makefile.am: updates for gtk-doc
2895 (SUBDIRS): add back "docs"
2897 * docs/Makefile.am (EXTRA_DIST): remove, since those old docs
2898 aren't around any more
2900 * docs/reference/*: set up gtk-doc
2902 * libsoup/Makefile.am (INCLUDES): Change G_LOG_DOMAIN to
2903 "libsoup". Remove unused defines.
2905 * libsoup/soup-connection.c: Fix doc comments
2906 * libsoup/soup-message.c: Likewise
2907 * libsoup/soup-misc.c: Likewise
2908 * libsoup/soup-socket.c: Likewise
2909 * libsoup/soup-uri.c: Likewise
2911 * libsoup/soup-address.h: Fixes to please gtk-doc
2912 * libsoup/soup-connection.h: Likewise
2913 * libsoup/soup-message.h: Likewise
2914 * libsoup/soup-message-private.h: Likewise
2915 * libsoup/soup-misc.h: Likewise
2916 * libsoup/soup-server-auth.h: Likewise
2917 * libsoup/soup-socket.h: Likewise
2918 * libsoup/soup-status.h: Likewise
2920 2003-11-18 Dan Winship <danw@ximian.com>
2922 * configure.in: Fix up the SSL checks some. Remove some useless
2925 * libsoup/soup-misc.h: declare soup_ssl_supported.
2927 * libsoup/soup-gnutls.c: add soup_ssl_supported declaration.
2929 * libsoup/soup-nossl.c: Not an SSL implementation, built if
2930 HAVE_SSL is not defined.
2932 * libsoup/Makefile.am (libsoup_2_2_la_SOURCES): add soup-nossl.c
2934 * libsoup/soup-socket.c (soup_socket_start_ssl): Return success or
2936 (listen_watch): Deal with soup_socket_start_ssl failing.
2938 * libsoup/soup-connection.c (tunnel_connect_finished,
2939 socket_connect_result, soup_connection_connect_sync): Deal with
2940 the soup_socket_start_ssl failing.
2942 * libsoup/soup-server.c (soup_server_new): Deal with
2943 soup_ssl_get_server_credentials failing
2945 2003-11-18 Rodrigo Moya <rodrigo@ximian.com>
2947 * libsoup/soup-soap-message.[ch] (soup_soap_message_start_fault,
2948 soup_soap_message_end_fault, soup_soap_message_start_fault_detail,
2949 soup_soap_message_end_fault_detail, soup_soap_message_start_header,
2950 soup_soap_message_end_header,
2951 soup_soap_message_start_header_element,
2952 soup_soap_message_end_header_element, soup_soap_message_write_int,
2953 soup_soap_message_write_double, soup_soap_message_write_base64,
2954 soup_soap_message_write_time, soup_soap_message_write_string,
2955 soup_soap_message_write_buffer, soup_soap_message_set_element_type,
2956 soup_soap_message_set_null, soup_soap_message_add_attribute,
2957 soup_soap_message_add_namespace,
2958 soup_soap_message_set_default_namespace,
2959 soup_soap_message_get_namespace_prefix,
2960 soup_soap_message_set_encoding_style, soup_soap_message_reset,
2961 soup_soap_message_persist): new functions from old SoupSerializer.
2963 2003-11-17 Rodrigo Moya <rodrigo@ximian.com>
2965 * libsoup/soup-soap-message.[ch] (soup_soap_message_new,
2966 soup_soap_message_new_from_uri): added a bunch of initialization
2968 (soup_soap_message_get_xml_doc, soup_soap_message_start_envelope,
2969 soup_soap_message_end_envelope, soup_soap_message_start_body,
2970 soup_soap_message_end_body, soup_soap_message_start_element,
2971 soup_soap_message_end_element):
2974 * configure.in: depend on libxml-2.0 for the SOAP code.
2976 * libsoup/Makefile.am: use XML CFLAGS and LIBS.
2978 2003-11-17 Joe Shaw <joe@ximian.com>
2980 * configure.in: Add in the --enable-libgpg-error flag from the 2.0
2983 * acinclude.m4: Include the gpg-error macros.
2985 2003-11-17 Rodrigo Moya <rodrigo@ximian.com>
2987 * libsoup/soup-soap-message.[ch]: new class to make it easier to
2988 build SOAP messages.
2990 * libsoup/Makefile.am: added new files.
2992 * configure.in: increased version number.
2994 2003-10-24 Joe Shaw <joe@ximian.com>
2996 * libsoup/soup-address.c (update_address_from_entry): Call
2997 soup_dns_entry_get_hostent() on the SoupAddress passed in, not the
2998 one in addr->priv->lookup. Fixes a crash on synchronous DNS
3001 * libsoup/soup-server.c (soup_server_new): We need to ref the
3002 address we're binding to, because soup_socket_get_local_address()
3005 2003-10-23 Dan Winship <danw@ximian.com>
3007 * libsoup/soup-socket.c (init): Initialize flags to default
3010 2003-09-23 Dan Winship <danw@ximian.com>
3012 * libsoup/soup-gnutls.c (SoupGNUTLSCred): Remove refcounting, but
3013 note whether or not the CA file has been loaded.
3014 (SoupGNUTLSChannel): add a "hostname" field.
3015 (verify_certificate): Remove the comment about not being able to
3016 verify the hostname because of soup problems. Now it's because of
3017 GNUTLS problems instead.
3018 (soup_ssl_wrap_iochannel): Renamed from soup_ssl_get_iochannel,
3019 and takes a hostname and a creds argument now.
3020 (soup_ssl_get_client_credentials,
3021 soup_ssl_get_server_credentials): Return client/server credentials
3023 (soup_ssl_free_client_credentials,
3024 soup_ssl_free_server_credentials): and free them.
3026 * libsoup/soup-session.c (class_init, set_property, get_property):
3027 add ssl_ca_file property
3028 (get_host_for_message): when returning an SSL host for the first
3029 time, create a client credentials structure for the session.
3030 (run_queue): Pass the ssl creds to the new connection. Also fix an
3031 unrelated bug that caused infinite loops on "bad hostname".
3033 * libsoup/soup-server.c: Use GObject properties, including
3034 ssl_cert_file and ssl_key_file properties.
3035 (soup_server_new): Remove "protocol" argument; if the cert file
3036 and key file properties were set, create a server credential
3037 structure from them and pass that to soup_socket_server_new.
3039 * libsoup/soup-connection.c (SoupConnectionPrivate): Rename
3040 dest_uri to origin_uri to match RFC 2616 terminology. Add an
3042 (class_init, set_property, get_property): add SSL_CREDS property
3043 (soup_connection_connect_async, soup_connection_connect_sync):
3044 Pass ssl_creds to soup_socket_client_new calls.
3046 * libsoup/soup-socket.c: Use GObject properties, including an
3048 (soup_socket_set_flags): Gone (replaced with boolean properties)
3049 (soup_socket_new): Make this take a list of properties
3050 (listen_watch): copy ssl creds from listener to new socket
3051 (soup_socket_start_ssl): Pass remote hostname and socket creds
3052 structure to soup_ssl_wrap_iochannel.
3053 (soup_socket_client_new_async, soup_socket_client_new_sync,
3054 soup_socket_server_new): Replace the SSL boolean with an ssl_creds
3057 * libsoup/soup-misc.c (soup_set_ssl_ca_file,
3058 soup_set_ssl_cert_files, soup_get_ssl_ca_file,
3059 soup_get_ssl_cert_files): Gone. SSL state is now per-session or
3062 * tests/get.c: add a "-c CAfile" argument, for loading a CA
3063 certificate file to validate https connections against
3065 * tests/simple-httpd.c: Add "-c certfile" and "-k keyfile"
3066 arguments for loading an SSL server certificate. Only start an SSL
3067 server if those arguments were used.
3069 * tests/test-cert.pem:
3070 * tests/test-key.pem: SSL certificate for testing simple-httpd
3072 * tests/revserver.c: Update for API changes
3073 * tests/simple-proxy.c: Likewise
3075 2003-09-22 Dan Winship <danw@ximian.com>
3077 * libsoup/soup-message-io.c: Move RESPONSE_BLOCK_SIZE #define here
3080 * libsoup/soup-misc.c (soup_load_config, etc): Remove all this.
3081 (soup_set_security_policy, soup_get_security_policy): Remove,
3082 since the GNUTLS backend doesn't actually implement it.
3083 (soup_set_ssl_ca_dir, soup_get_ssl_ca_dir): Likewise
3085 * libsoup/soup-misc.h: sync to soup-misc.c. Don't #include extra
3088 * libsoup/soup-types.h (SOUP_MAKE_TYPE): Move this here from
3091 * libsoup/soup-ssl.h: Merge soup_ssl_get_iochannel and
3092 soup_ssl_get_server_iochannel into a single function that takes a
3095 * libsoup/soup-gnutls.c: Remove soup_get_ssl_ca_dir() reference.
3096 (soup_ssl_get_iochannel): Renamed from soup_gnutls_get_iochannel.
3097 (soup_gnutls_set_security_policy): Gone
3099 * libsoup/soup-gnutls.h
3100 * libsoup/soup-ssl.c: Gone; soup-ssl.h is the #include file for
3103 * libsoup/soup-socket.c: Move soup_sockaddr_max
3104 #define here from soup-private.h
3105 (soup_socket_start_ssl): Update for new soup_ssl_get_iochannel
3108 * libsoup/soup-private.h: Gone
3110 * libsoup/soup-address.c: Fix #includes for soup-private.h and
3112 * libsoup/soup-auth-digest.c: Likewise
3113 * libsoup/soup-auth.c: Likewise
3114 * libsoup/soup-connection-ntlm.c: Likewise
3115 * libsoup/soup-connection.c: Likewise
3116 * libsoup/soup-dns.c: Likewise
3117 * libsoup/soup-gnutls.c: Likewise
3118 * libsoup/soup-headers.c: Likewise
3119 * libsoup/soup-message-client-io.c: Likewise
3120 * libsoup/soup-message-handlers.c: Likewise
3121 * libsoup/soup-message-io.c: Likewise
3122 * libsoup/soup-message-server-io.c: Likewise
3123 * libsoup/soup-message.c: Likewise
3124 * libsoup/soup-server-message.c: Likewise
3125 * libsoup/soup-server.c: Likewise
3126 * libsoup/soup-session.c: Likewise
3127 * libsoup/soup-socket.c: Likewise
3128 * tests/auth-test.c: Likewise
3130 2003-09-19 Dan Winship <danw@ximian.com>
3132 * libsoup/soup-address.c (update_address_from_entry): free the
3135 * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Don't leak
3138 * libsoup/soup-gnutls.c (soup_gnutls_get_iochannel): Add some more
3139 iochannel initialization. Not sure how this worked before...
3141 * libsoup/soup-message.c (soup_message_cleanup_response): Renamed
3142 from soup_message_prepare (and a few things removed).
3144 * libsoup/soup-message-client-io.c (soup_message_send_request):
3145 s/soup_message_prepare/soup_message_cleanup_response/
3147 * libsoup/soup-message-io.c (io_read): Replace the final "\r\n"
3148 with "\0" on the headers before passing them to the parse
3150 (io_read): Call soup_message_cleanup_response after returning an
3151 informational response so the data doesn't leak.
3153 * libsoup/soup-headers.c (soup_headers_parse): Update for
3154 soup-message-io.c:io_read change
3156 * libsoup/soup-server.c (soup_server_new,
3157 soup_server_new_with_host): Don't leak the SoupAddress.
3159 * libsoup/soup-session.c (class_init): Make PROP_PROXY_URI not
3161 (set_property): If the proxy uri changes, call
3162 soup_session_abort() and cleanup_hosts().
3163 (request_finished, final_finished): Fix a bug when requeuing
3166 * tests/libsoup.supp: valgrind suppression file for soup tests
3168 * tests/Makefile.am (EXTRA_DIST): dist it.
3169 (noinst_PROGRAMS): move the former check_PROGRAMS to
3170 noinst_PROGRAMS instead.
3172 2003-09-18 Dan Winship <danw@ximian.com>
3174 * libsoup/soup-message.c: Add wrote_informational and
3175 got_informational signals.
3177 * libsoup/soup-message-client-io.c (get_request_headers): Set the
3178 EXPECT_CONTINUE flag on the message if that header is set.
3180 * libsoup/soup-message-server-io.c (parse_request_headers):
3183 * libsoup/soup-message-io.c (io_write): Set read_state to HEADERS
3184 when blocking on an expect-continue. Emit wrote_informational
3185 instead of wrote_headers in the 1xx case.
3186 (io_read): Set read_state to BLOCKING, not NOT_STARTED after
3187 reading a 100 Continue response. Emit got_informational instead of
3188 got_headers in the 1xx case.
3190 * libsoup/soup-session.c (soup_session_send_message): Reorder
3191 things to deal with the fact that the message could finish right
3192 away if there is a connection available and the server is very
3195 * libsoup/soup-status.h: Rename SOUP_STATUS_CLASS_TRANSPORT to
3196 SOUP_STATUS_CLASS_TRANSPORT_ERROR.
3198 2003-09-17 Dan Winship <danw@ximian.com>
3200 * libsoup/soup-session.c (find_oldest_connection): Fix two bugs
3201 (one that pruned too little, one that pruned too much).
3202 (queue_message): When requeuing, don't run the queue;
3203 final_finished will take care of that later.
3204 (soup_session_abort): New, to cancel all pending requests.
3206 * libsoup/soup-socket.c (soup_socket_connect, got_address): ref
3207 the socket while waiting for the address to resolve
3209 2003-09-17 Dan Winship <danw@ximian.com>
3211 * libsoup/soup-connection.c (soup_connection_new): Replaces the
3212 three previous soup_connection_new* functions and uses gobject
3213 properties to set the destination and proxy uris.
3214 (class_init): set up two more signals, authenticate and
3216 (soup_connection_send_request): virtualize
3217 (send_request): Default implementation
3219 * libsoup/soup-connection-ntlm.c: New SoupConnection subclass that
3220 also handles NTLM authentication. Includes all of the NTLM code
3221 formerly in soup-auth-ntlm.c.
3223 * libsoup/soup-auth-ntlm.[ch]: Gone.
3225 * libsoup/soup-auth.c: Remove NTLM refs
3227 * libsoup/soup-session.c (class_init): Add gobject properties for
3228 proxy, max_conns, use_ntlm. Change the "authenticate" and
3229 "reauthenticate" signal prototypes to not pass a SoupAuth (so they
3230 can be used for authenticating SoupConnectionNTLM as well, which
3231 doesn't use a SoupAuth).
3232 (soup_session_new): Renamed from soup_session_new_default.
3233 (soup_session_new_with_options): Replaces
3234 soup_session_new_with_proxy and soup_session_new_full. Takes
3236 (run_queue): Create a new connection of type SoupConnection or
3237 SoupConnectionNTLM depending on our "use_ntlm" property. Connect
3238 to its authenticate and reauthenticate signals.
3239 (connection_authenticate, connection_reauthenticate): proxy these
3242 * libsoup/soup-address.c (update_address_from_entry): Fix a
3243 crasher when failing to resolve the address.
3245 * libsoup/soup-dns.c (check_hostent): Fix some "how was this
3246 working before" bugs.
3248 * libsoup/soup-message-client-io.c (soup_message_send_request):
3249 call soup_message_prepare() to clean up the existing response
3252 * libsoup/soup-message-io.c (io_error): Set the read_state to DONE
3253 when processing an OK EOF.
3255 * libsoup/soup-status.h (SoupStatusClass): fix the numbering of
3256 these so that SOUP_STATUS_CLASS_SUCCESS is 2, etc.
3258 * tests/auth-test.c (authenticate, reauthenticate): Update for new
3260 (main): Use soup_session_new.
3261 * tests/get.c (main): Likewise.
3262 * tests/simple-proxy.c (main): Likewise.
3264 2003-09-10 Dan Winship <danw@ximian.com>
3266 * libsoup/soup-session.c: Add "authenticate" and "reauthenticate"
3268 (invalidate_auth): Remove the call to soup_auth_invalidate.
3269 (authenticate_auth): soup_auth_fn is gone. If the URI doesn't
3270 contain authentication, then emit "authenticate" or
3271 "reauthenticate" (depending on whether or not this is the first
3272 time we've asked for a password for this auth).
3273 (update_auth_internal): If the server rejects our
3274 username/password, don't bail out immediately. Try doing a
3275 "reauthenticate" first.
3277 * libsoup/soup-misc.c (soup_set_authorize_callback): Gone
3279 * libsoup/soup-auth.c (soup_auth_new_from_header_list): Remove the
3281 (soup_auth_invalidate): Remove this; it doesn't actually do
3282 anything useful for us.
3284 * libsoup/soup-auth-basic.c (invalidate): Remove
3285 * libsoup/soup-auth-digest.c: (invalidate): Remove
3286 * libsoup/soup-auth-ntlm.c: (invalidate): Remove
3288 * libsoup/soup-uri.c: Remove all references to "authmech".
3289 (soup_uri_set_auth): Remove this too.
3291 * tests/auth-test.c: Update to use the "authenticate" and
3292 "reauthenticate" signals instead of encoding usernames and
3293 passwords in the URIs. Add a few more test cases.
3295 2003-09-10 Dan Winship <danw@ximian.com>
3297 * libsoup/soup-message-private.h (SoupMessagePrivate): Remove the
3298 "status" field from here, since it's mostly used by SoupSession,
3299 which shouldn't need access to SoupMessagePrivate.
3301 * libsoup/soup-message.h (SoupMessage): Move it here.
3302 (SoupCallbackFn): Remove this alias for SoupMessageCallbackFn.
3303 (soup_message_set_uri): also moved from soup-message-private.h
3305 * libsoup/soup-message.c: s/msg->priv->status/msg->status/.
3307 * libsoup/soup-message-handlers.c:
3308 s/SoupCallbackFn/SoupMessageCallbackFn/ everywhere.
3310 * libsoup/soup-message-io.c (soup_message_io_client,
3311 soup_message_io_server, soup_message_io_unpause): Don't set up an
3312 idle handler, just jump right in to reading/writing; if this is a
3313 synchronous socket, then the caller wants to block, and if it's
3314 not, then we'll quickly get an EAGAIN anyway.
3316 * libsoup/soup-session.c: (queue_message): Likewise.
3317 (*) Update for SoupMessageStatus move and remove
3318 soup-message-private.h include.
3320 * libsoup/soup-server-message.c: Remove soup-message-private.h
3323 * libsoup/soup-server.c: Likewise.
3325 * libsoup/soup-connection.c (soup_connection_is_connected,
3326 soup_connection_is_new): Remove these, since they weren't being
3329 * libsoup/soup-md5-utils.c: Moved from md5-utils.c and renamed, to
3330 avoid namespace pollution.
3332 * libsoup/soup-auth-digest.c: Update for that.
3333 * libsoup/soup-server-auth.c: Likewise
3335 * tests/auth-test.c: Remove soup-message-private.h include
3337 2003-09-09 Dan Winship <danw@ximian.com>
3339 Beginnings of improved synchronous API support
3341 * libsoup/soup-dns.c: Simplify this by making it not automatically
3342 return the result: force the caller to poll. (This isn't really a
3343 performance issue: the results should come back quickly anyway.)
3344 Also, make the cache thread-safe.
3345 (soup_dns_entry_from_name): Was soup_gethostbyname
3346 (soup_dns_entry_from_addr): Was soup_gethostbyaddr
3347 (soup_dns_entry_check_lookup): Used to poll to see if DNS is done
3348 (soup_dns_entry_get_hostent): Gets the hostent from an entry (and
3349 blocks if it's not resolved yet).
3351 * libsoup/soup-address.c: Update for soup-dns changes.
3352 (soup_address_new): Don't automatically start resolving the
3353 hostname now, since we don't know if the caller is going to want
3354 it resolved synchronously or asynchronously.
3355 (soup_address_resolve_async): Renamed from soup_address_resolve.
3356 (soup_address_resolve_sync): New routine to do blocking
3359 * libsoup/soup-socket.c (soup_socket_connect): Now returns a
3360 status value directly when connecting synchronously.
3361 (soup_socket_client_new_async, soup_socket_client_new_sync):
3362 Separate async/sync client socket functions.
3363 (soup_socket_get_iochannel): Made static since it was not used
3364 outside soup-socket.
3366 * libsoup/soup-connection.c (soup_connection_new,
3367 soup_connection_new_proxy, soup_connection_new_tunnel): Just set
3368 up the data, don't actually start connecting.
3369 (soup_connection_connect_async, soup_connection_connect_sync): New
3370 async and sync SoupConnection connecting routines.
3371 (soup_connection_get_socket): Remove this since it wasn't being
3374 * libsoup/soup-session.c (final_finished): Run the queue since a
3375 connection is now freed up.
3376 (run_queue): Update for soup_connection_new* changes.
3378 * libsoup/soup-misc.c (soup_substring_index): Remove, since it
3379 wasn't being used any more.
3381 * libsoup/soup-private.h: Remove some prototypes for functions
3382 that no longer exist.
3384 * libsoup/soup-uri.c (soup_uri_copy_root): New utility function
3385 (copies the protocol, host, and port of a SoupUri).
3387 * tests/auth-test.c:
3389 * tests/simple-proxy.c: belatedly update for soup-session change
3391 * tests/revserver.c: Handle each new connection in its own thread,
3392 using synchronous SoupSocket calls.
3394 2003-09-05 Dan Winship <danw@ximian.com>
3396 * libsoup/soup-session.c: Move a bunch of logic here from
3397 soup-context. Now the session keeps track of hosts (instead of
3398 having a global soup_hosts hash) and their connections.
3399 (soup_session_new_with_proxy, soup_session_new_full): New session
3400 constructors to specify a proxy or a proxy and connection limits
3401 (send_request): Add Authorization and Proxy-Authorization headers
3402 before sending off the request.
3403 (soup_session_queue_message, et al): Improve the way this works.
3404 There's no need to use timeouts to wait for connections to become
3405 free; we *know* when they become free.
3407 * libsoup/soup-private.h: Remove SoupHost and some other
3408 no-longer-used stuff.
3410 * libsoup/soup-misc.c (soup_set_proxy, soup_get_proxy,
3411 soup_set_connection_limit, soup_set_connection_limit): Gone. These
3412 are all per-session now.
3414 * libsoup/soup-message.c: Remove all SoupContext references
3415 (mostly replaced with SoupUri references)
3416 (cleanup_message): priv->connect_tag and priv->connection are gone
3417 now, so this was just soup_message_io_cancel(). So remove
3418 cleanup_message and replace it with that everywhere.
3419 (soup_message_disconnect): Gone.
3420 (soup_message_set_uri): Replaces soup_message_set_context.
3421 (soup_message_set_connection, soup_message_get_connection): Gone
3423 * libsoup/soup-message-server-io.c (parse_request_headers):
3424 s/soup_message_set_context/soup_message_set_uri/
3426 * libsoup/soup-message-private.h (SoupMessagePrivate): Remove
3427 connect_tag, context, and connection.
3429 * libsoup/soup-message-client-io.c (encode_http_auth): Gone.
3431 * libsoup/soup-context.c: Gone
3433 * tests/auth-test.c (identify_auth): update for session/context
3436 2003-09-03 Dan Winship <danw@ximian.com>
3438 * libsoup/soup-status.h: Renamed from soup-error.h, with types
3439 and defines renamed accordingly.
3441 * libsoup/soup-message.h (SoupMessage): Rename errorcode to
3442 status_code and errorphrase to reason_phrase. Remove errorclass.
3443 (SOUP_MESSAGE_IS_ERROR): Remove this. You can't classify redirects
3444 as being either "errors" or "not errors", so its semantics are
3445 guaranteed to be wrong sometimes.
3447 * libsoup/soup-message.c (soup_message_set_status,
3448 soup_message_set_status_full): Renamed
3450 * libsoup/soup-message-handlers.c
3451 (soup_message_add_status_code_handler,
3452 soup_message_add_status_class_handler): Rename.
3454 * libsoup/soup-session.c (soup_session_send_message): Make this
3455 return a status code rather than a status class.
3457 * libsoup/soup-message-private.h (SoupMessagePrivate): Remove some
3458 unrelated unused fields (retries, callback, user_data).
3462 2003-09-02 Dan Winship <danw@ximian.com>
3464 * libsoup/soup-session.c: First draft at the new object to
3465 maintain formerly-global state. (Not yet complete; still need to
3466 get rid of SoupContext).
3468 * libsoup/soup-message-queue.c: Data structure used by SoupSession
3470 * libsoup/soup-queue.c: Gone. Mostly moved into soup-session, but
3471 some bits went into soup-connection.
3473 * libsoup/soup-connection.c (soup_connection_send_request): New,
3474 to send a request on a connection. The connection updates its
3475 internal state and then hands off to soup_message_send_request.
3476 (request_done): Callback set up by soup_connection_send_request.
3477 Marks the connection as no-longer-in-use, and disconnects it if
3478 the message says to.
3479 (soup_connection_set_in_use, soup_connection_mark_old): No longer
3480 needed; the connection takes care of this itself now.
3481 (soup_connection_new_proxy): New, to create a new connection that
3482 is explicitly marked as being through an HTTP proxy.
3483 (soup_connection_new_tunnel): New, to create a new HTTPS
3484 connection through a proxy. (Includes the code to send the
3487 * libsoup/soup-context.c (try_existing_connections): Don't need to
3488 call soup_connection_set_in_use.
3489 (try_create_connection): Use soup_connection_new,
3490 soup_connection_new_proxy, or soup_connection_new_tunnel as
3493 * libsoup/soup-message.c (soup_message_prepare): Replaces
3495 (soup_message_queue, soup_message_requeue, soup_message_prepare):
3496 Gone. This must be done via a SoupSession now.
3497 (soup_message_set_connection): don't need to mark in_use/not
3498 in_use. Also, msg->priv->socket is gone now.
3499 (soup_message_get_socket): Gone.
3501 * libsoup/soup-message-handlers.c (soup_message_run_handlers):
3502 Remove references to global handlers.
3503 (redirect_handler, authorize_handler): Moved to soup-session.c.
3505 * libsoup/soup-misc.c (soup_shutdown): Gone; just unref the
3506 session to shut down now.
3508 * libsoup/soup.h: add soup-session.h
3510 * libsoup/Makefile.am: updates
3512 * tests/auth-test.c, tests/get.c, tests/simple-proxy.c: Use
3515 2003-08-29 Dan Winship <danw@ximian.com>
3517 * libsoup/soup-message-io.c: Major rewrite. There is now only a
3518 single IO state object (instead of one for reading and one for
3519 writing), and the IO code handles switching back and forth between
3520 reading and writing as appropriate (including handling the extra
3521 switches needed for "Expect: 100-continue").
3522 (soup_message_io_client, soup_message_io_server): The new entry
3524 (soup_message_io_cancel): If the caller cancels the IO when we
3525 were expecting to read more data, disconnect the socket.
3527 * libsoup/soup-message.h (SoupMessageFlags): add
3528 SOUP_MESSAGE_EXPECT_CONTINUE, to indicate that the IO code should
3529 do the special expect-continue handling.
3531 * libsoup/soup-message.c: Move all the signal stuff here. Remove
3532 the "done_reading" and "done_writing" signals and replace them
3533 with a single "finished" signal. (A single signal. Say that 10
3535 (soup_message_got_headers, etc): Functions to emit signals.
3536 (got_headers, got_chunk, got_body): Default signal methods that
3537 call soup_message_run_handlers.
3538 (finished): Default signal method that replaces
3539 soup_message_issue_callback.
3540 ([various]): s/soup_message_issue_callback/soup_message_finished/
3541 (soup_message_requeue): There's no soup_message_set_read_callbacks
3542 any more, so if the caller requeues while it's still reading, just
3544 (soup_message_add_chunk, soup_message_add_final_chunk,
3545 soup_message_pop_chunk): Moved here from soup-server-message,
3546 although we don't actually quite support using chunked encoding
3549 * libsoup/soup-server-message.c (soup_server_message_new): No
3550 longer takes a socket argument.
3551 (soup_server_message_add_chunk, soup_server_message_get_chunk):
3552 Moved into SoupMessage.
3554 * libsoup/soup-message-handlers.c (global_handlers): Make these
3555 POST_BODY rather than PRE_BODY, so they won't mess up the IO
3556 channel when the requeue the message.
3557 (soup_message_run_handlers): Don't need to issue the message
3558 callback from here any more.
3559 (authorize_handler): Just leave the error as 401 or 407 (see
3560 soup-error.h change)
3562 * libsoup/soup-message-client-io.c (soup_message_send_request):
3563 Replaces soup_message_write_request and
3564 soup_message_read_response.
3566 * libsoup/soup-message-server-io.c: Parallel to
3567 soup-message-client-io.c, this defines the server-side header
3569 (soup_message_read_request): Its entry point.
3571 * libsoup/soup-server.c: Lots of code moved into
3572 soup-message-server-io.c. Update for other changes.
3574 * libsoup/soup-queue.c: Update for changes
3576 * libsoup/soup-socket.c (read_from_network, soup_socket_write):
3577 Don't call soup_socket_disconnect() on an error, just return
3578 SOUP_SOCKET_ERROR. Otherwise soup_socket_disconnect() could emit
3579 signals that will mess up the caller of the read/write function.
3581 * libsoup/soup-connection.c (soup_connection_disconnect): When
3582 disconnecting the socket, disconnect from its signals first to
3583 prevent bad reentrancy.
3585 * libsoup/soup-error.h: Kill off SOUP_ERROR_CANT_AUTHENTICATE and
3586 SOUP_ERROR_CANT_AUTHENTICATE_PROXY, since they don't really say
3587 anything that SOUP_ERROR_UNATHORIZED and
3588 SOUP_ERROR_PROXY_UNAUTHORIZED don't say. (And now, all of the
3589 "transport" errors actually are transport-related.)
3591 * tests/auth-test.c (main): s/CANT_AUTHENTICATE/UNAUTHORIZED/
3593 * tests/simple-proxy.c: Complicate this a bunch. In particular,
3594 use SOUP_MESSAGE_OVERWRITE_CHUNKS and the GOT_CHUNK signal, and
3595 pass the data back to the client in chunked format.
3597 2003-08-27 Dan Winship <danw@ximian.com>
3599 * libsoup/soup-types.h: New header with typedefs, to avoid
3600 #include loops among other headers.
3602 * libsoup/Makefile.am (libsoupinclude_HEADERS): add it
3604 * libsoup/*.[ch], tests/*.c: Update for soup-types.h
3606 2003-08-26 Dan Winship <danw@ximian.com>
3608 * libsoup/soup-message-client-io.c (soup_message_write_request,
3609 soup_message_read_response): Higher-than-soup-message-io-level
3610 functions to do client-side IO. (Code that used to be in
3612 (get_request_header_cb): Fix a bug in the generation of the Host:
3613 header; need to include the port number if it's not the default.
3615 * libsoup/soup-message-io.c (soup_message_write,
3616 soup_message_write_simple): Take separate user_datas for the get_*
3617 callbacks and the done callbacks.
3619 * libsoup/soup-queue.c: Update to use soup_message_write_request
3620 and soup_message_read_response.
3622 * libsoup/soup-connection.c (soup_connection_new): Change the
3623 prototype to take a SoupUri and a callback.
3625 * libsoup/soup-context.c (try_create_connection,
3626 soup_context_connect_cb): Update for soup_connection_new change.
3628 * libsoup/soup-server.c (read_done_cb, issue_bad_request): Update
3629 for soup_message_write changes
3631 * libsoup/soup-uri.c (soup_uri_uses_default_port): new utility
3634 2003-08-26 Dan Winship <danw@ximian.com>
3636 * libsoup/soup-message-private.h: Define SoupMessage signal stuff
3637 (READ_HEADERS, READ_CHUNK, READ_BODY, READ_ERROR, WROTE_HEADERS,
3638 WROTE_CHUNK, WROTE_BODY, WRITE_ERROR).
3640 * libsoup/soup-message.c (class_init): set up signals
3641 (requeue_read_finished): Update for changes.
3643 * libsoup/soup-message-io.c (soup_message_read): Split out
3644 parse_headers_cb from read_headers_cb. Also add a SoupDataBuffer *
3645 arg to say where to store the message body. Set up
3646 read_headers_cb, read_chunk_cb, read_body_cb, and error_cb as
3648 (do_read): Call r->parse_headers_cb, then emit READ_HEADERS
3649 (read_body_chunk): emit READ_CHUNK.
3650 (issue_final_callback): Set r->body. emit READ_BODY.
3651 (failed_read): emit READ_ERROR.
3652 (soup_message_read_set_callbacks): Disconnect old signal handlers,
3654 (soup_message_read_cancel): Disconnect signal handlers.
3655 (soup_message_write, soup_message_write_simple): Set up
3656 wrote_body_cb and error_cb as signal handlers.
3657 (do_write): emit WROTE_HEADERS and WROTE_CHUNK, even though
3658 nothing currently ever listens for them. emit WROTE_BODY when
3660 (failed_write): emit WRITE_ERROR
3662 * libsoup/soup-queue.c (soup_queue_parse_headers_cb,
3663 soup_queue_read_headers_cb): Split this into two unequal chunks.
3664 (read_header_cb only runs the pre-body handlers).
3665 (soup_queue_read_chunk_cb, soup_queue_read_done_cb): Update
3667 (soup_queue_write_done_cb): Update call to soup_message_read
3669 * libsoup/soup-server.c (parse_headers_cb): Renamed from
3671 (read_done_cb): Update prototype
3672 (start_request): Update soup_message_read call.
3674 2003-08-25 Dan Winship <danw@ximian.com>
3676 * libsoup/soup-message-io.c (soup_message_read,
3677 soup_message_write, soup_message_write_simple): Add a "user_data"
3678 arg, pass it to the callbacks.
3680 * libsoup/soup-message.c (soup_message_requeue,
3681 requeue_read_finished, requeue_read_error): Update for that
3683 * libsoup/soup-queue.c: Likewise
3685 * libsoup/soup-server.c: Likewise
3687 2003-08-25 Dan Winship <danw@ximian.com>
3689 * libsoup/soup-message.c (soup_message_new): Take a uri string
3690 instead of a context. Also, swap the args (so the method comes
3691 before the URI, just like in the protocol).
3692 (soup_message_new_from_uri): Like soup_messgae_new, but takes a
3693 SoupUri instead of a string
3694 (soup_message_set_request, soup_message_set_response): Replace
3695 soup_message_new_full.
3696 (cleanup_message): Was soup_message_cleanup, but is static now.
3697 (queue_message): Do the pre-queuing message cleanup here instead
3698 of in soup_queue_message.
3699 (soup_message_queue): Set the callback and user_data, then call
3701 (requeue_read_error, requeue_read_finished, soup_message_requeue):
3703 (soup_message_get_uri): Replaces soup_message_get_context.
3705 * libsoup/soup-message.h (SoupMessage): Remove msg->context. (It's
3706 part of SoupMessagePrivate now)
3708 * libsoup/soup-context.c: #include soup-message-private
3709 (soup_context_from_uri): constify the uri arg.
3711 * libsoup/soup-queue.c: Various context/uri fixes
3712 (proxy_https_connect): Use soup_message_new_from_uri.
3713 (soup_queue_message): Drastically simplified since most of the
3714 work is in soup-messsage.c:queue_message() now
3716 * libsoup/soup-auth-digest.c (compute_response,
3717 get_authorization): Use soup_message_get_uri.
3719 * libsoup/soup-server-auth.c (parse_digest): Likewise
3721 * libsoup/soup-server.c (call_handler): Likewise
3723 * tests/simple-httpd.c (server_callback): Likewise.
3725 * tests/simple-proxy.c (server_callback): Likewise
3727 * tests/get.c (got_url): Likewise.
3728 (get_url): Update soup_message_new usage.
3730 * tests/auth-test.c: #include soup-message-private. Update for
3731 context changes and soup_message_new change.
3733 2003-08-22 Dan Winship <danw@ximian.com>
3735 * libsoup/soup-message-private.h: New file containing
3736 SoupMessagePrivate and some other soup-message-internal
3737 types/functions. Also includes the new, expanded SoupMessageStatus
3740 * libsoup/soup-message-io.c: Replaces what used to be in
3741 soup-transfer, but now all the interfaces take SoupMessages
3742 instead of SoupReader/SoupWriter and deal with maintaining
3743 msg->priv->{read,write}_state themselves. Fixes up all the
3744 refcounting madness.
3746 * libsoup/soup-message-handlers.c: Move the handler code here,
3747 mostly unchanged. (But rename SoupHandlerType to SoupHandlerPhase
3748 to make the distinction from SoupHandlerKind clearer.)
3750 * libsoup/soup-message.c: Update for soup-message-io and new
3751 SoupMessageStatus values. Remove handler code.
3752 (soup_message_cleanup): Remove the hack to try to preserve the
3753 connection if the message gets cleaned up before it finishes
3754 reading. soup_message_requeue handles this in the requeuing case,
3755 and there's no especially compelling reason to bother doing it in
3756 any other case. (And the soup-message-io api doesn't support
3757 having a read operation that's not connected to any message.)
3759 * libsoup/soup-private.h: remove SoupMessagePrivate
3761 * libsoup/soup-queue.c: Update for soup-message-io and new
3762 SoupMessageStatus values.
3764 * libsoup/soup-server-message.c: Likewise
3766 * libsoup/soup-server.c: Likewise
3768 * libsoup/soup-transfer.c: Gone (yay)
3770 * libsoup/Makefile.am (libsoup_2_2_la_SOURCES): update
3772 2003-08-20 Dan Winship <danw@ximian.com>
3774 * libsoup/soup-message.c: Make this a GObject. (Note that since
3775 SoupMessage was not refcounted before, it's not really refcounted
3777 (soup_message_free): Gone, replaced by g_object_unref
3778 (soup_message_copy, soup_message_foreach_remove_header): Remove
3779 these, since neither was currently functional.
3780 (soup_message_is_keepalive): New utility function to look at
3781 HTTP version and request/response headers to decide if a message
3782 indicates the connection should be kept alive.
3783 (soup_message_set_connection, soup_message_get_connection): New
3784 (soup_message_get_socket): New
3786 * libsoup/soup-server-message.c: Make this a subclass of
3788 (soup_server_message_new): Now takes a SoupServer and SoupSocket
3789 (soup_server_message_get_server): New
3790 (soup_server_message_set_encoding,
3791 soup_server_message_get_encoding): Get/set whether the message
3792 should be sent with content-length or chunked encoding
3793 (soup_server_message_is_started, soup_server_message_is_finished):
3794 Private member accessors.
3795 (soup_server_message_add_chunk): Renamed from add_data
3796 (soup_server_message_get_chunk): Pops a chunk from the list.
3797 (soup_server_message_get_source): Gone
3799 * libsoup/soup-server.c: Update for SoupServerMessage changes.
3800 (error_cb, write_done_cb): All the cleanup stuff that used to be
3801 here happens automatically by unreffing the message now.
3802 (get_response_header): Remove some erroneous leftover CGI stuff
3803 (issue_bad_request): add "Connection: close" to the response.
3804 (read_headers_cb): clean this up a bit. Reject HTTP/1.1 messages
3805 with no Host header as per RFC 2616.
3807 * libsoup/soup-connection.c (soup_connection_start_ssl): Gone
3808 (soup_connection_set_in_use): Let the caller set the connection to
3809 "not in use" even after the socket has been disconnected.
3811 * libsoup/soup-context.c: Use soup_message_get_connection
3813 * libsoup/soup-headers.c (soup_headers_parse_request): Remove the
3814 check on request length, since it was rejecting
3815 "GET / HTTP/1.0\r\n\r\n", which is a valid complete request.
3817 * libsoup/soup-queue.c: Use soup_message_get_connection and
3818 soup_message_get_socket.
3819 (soup_queue_read_done_cb): Use soup_message_is_keepalive
3820 (proxy_https_connect_cb): Use soup_socket_start_ssl rather than
3821 soup_connection_start_ssl
3823 * libsoup/soup-socket.c (finalize): disconnect the GIOChannel
3824 handlers if the socket hasn't been disconnected yet.
3826 * libsoup/soup-transfer.c (soup_reader_read_body_chunk,
3827 reader_read): Fix these so that reader_read will exit properly if
3828 the read is cancelled.
3830 * tests/auth-test.c (main): s/soup_message_free/g_object_unref/
3832 * tests/simple-httpd.c (server_callback): set the message to
3833 content-length encoding.
3834 * tests/simple-proxy.c (server_callback): Likewise
3836 2003-08-19 Dan Winship <danw@ximian.com>
3838 * libsoup/soup-socket.c (soup_socket_read,
3839 soup_socket_read_until, soup_socket_write): New API for doing
3840 socket IO. Works both synchronously and asynchronously, and
3841 buffers data to prevent the "100 Continue" problem.
3842 (soup_socket_set_flag): Replaces formerly-private
3843 soup_set_sockopts. (primarily to let the caller turn off
3844 SOUP_SOCKET_FLAG_NONBLOCKING).
3846 * libsoup/soup-transfer.c (soup_transfer_read,
3847 soup_transfer_write, soup_transfer_write_simple): Take a
3848 SoupSocket instead of a GIOChannel. Use the new socket IO api.
3849 Changed the prototypes of some of the callbacks to be less
3852 * libsoup/soup-connection.c (soup_connection_get_socket): Replaces
3853 soup_connection_get_iochannel.
3855 * libsoup/soup-message.c: Fix up for soup-transfer changes
3857 * libsoup/soup-queue.c: Likewise
3859 * libsoup/soup-server.c: Likewise
3861 * tests/revserver.c: A slightly more complicated replacement for
3862 timeserver. (Does both reads and writes)
3864 2003-08-19 Dan Winship <danw@ximian.com>
3866 * libsoup/soup-socks.[ch]: Remove this. RC doesn't let you
3867 configure it, and no one has complained, and it looks like the
3868 SOCKS5 auth code doesn't actually work anyway...
3870 * libsoup/soup-queue.c (proxy_connect): Remove SOCKS code.
3872 * libsoup/soup-uri.h: Remove SOUP_PROTOCOL_SOCKS4 and
3873 SOUP_PROTOCOL_SOCKS5
3875 * libsoup/soup-misc.c: Remove a references to SOCKS in a comment
3877 * libsoup/Makefile.am (libsoup_2_2_la_SOURCES): remove
3880 2003-08-19 Dan Winship <danw@ximian.com>
3882 * libsoup/soup-server.c: Make this a GObject. Remove
3883 SoupServerMessage code (to soup-server-message.c). Remove CGI
3884 server code (for now?)
3885 (soup_server_add_handler, soup_server_remove_handler): Rename
3886 (from register/unregister) to make it clearer what they do.
3888 * libsoup/soup-server-message.c: Moved out of soup-server.c
3890 * libsoup/soup-private.h: Remove SoupServer def
3892 * libsoup/Makefile.am (libsoupinclude_HEADERS,
3893 libsoup_2_2_la_SOURCES): add soup-server-message.[ch]
3895 * tests/simple-httpd.c:
3896 * tests/simple-proxy.c: Update for SoupServer changes
3898 2003-08-18 Dan Winship <danw@ximian.com>
3900 * libsoup/soup-address.c (SoupAddressPrivate): Make this more like
3901 a struct sockaddr again (like it used to be). In particular, add
3902 back the "port" field. Add a bunch of macros to try (and fail) to
3903 simplify some of the code.
3904 (soup_address_new): Now returns a SoupAddress directly rather than
3905 a random handle, and the caller can just use g_object_unref to
3906 cancel the lookup. Also, the callback now uses a
3907 SoupKnownErrorCode rather than a special-purpose address-lookup
3909 (soup_address_new_cancel): No longer needed.
3910 (soup_address_new_sync): Removed
3911 (soup_address_new_any): Replaces soup_address_ipv4_any and
3912 soup_address_ipv6_any.
3913 (soup_address_get_name, etc): Gone. Use soup_address_resolve()
3915 (soup_address_get_physical): Renamed from
3916 soup_address_get_canonical_name.
3917 (soup_address_get_sockaddr): Replaces soup_address_make_sockaddr()
3919 * libsoup/soup-socket.c: Update for SoupAddress changes and make
3920 similar changes here.
3921 (soup_socket_new): Just creates a generic SoupSocket now.
3922 (soup_socket_connect): Client setup
3923 (soup_socket_listen): Server setup. Now also sets up an iochannel
3924 listening for connects and emits a "new_connection" signal as they
3926 (soup_socket_start_ssl): Turns on SSL.
3927 (soup_socket_client_new, soup_socket_server_new): Utility
3928 functions that wrap the above.
3929 (soup_socket_new_cancel, soup_socket_new_sync): Gone
3930 (soup_socket_server_accept, soup_socket_server_try_accept): No
3932 (soup_socket_get_iochannel): No longer adds a ref when returning
3933 the iochannel. Also, we set it to "close_on_unref" so that if a
3934 caller adds a ref to it, the connection will actually remain open
3935 even after the SoupSocket is destroyed.
3936 (soup_socket_get_local_address, soup_socket_get_remote_address):
3937 Let the caller get both of these.
3939 * libsoup/soup-connection.c: Don't keep a private copy of the
3941 (soup_connection_new): Don't need to set socket options here.
3943 (soup_connection_start_ssl): Just call soup_socket_start_ssl.
3944 (soup_connection_get_iochannel): Just return the socket's
3945 iochannel (and don't ref it)
3947 * libsoup/soup-error.c: add SOUP_ERROR_CANT_RESOLVE and
3948 SOUP_ERROR_CANT_RESOLVE_PROXY
3950 * libsoup/soup-dns.c (soup_ntop): Make the address arg const.
3951 Remove the "FIXME add a CANT_RESOLVE error" and return
3952 SOUP_ERROR_CANT_RESOLVE instead.
3954 * libsoup/soup-server.c: Update for socket/address changes. Don't
3955 poke into SoupSocket's private fields.
3956 (soup_server_run_async): Just connect to the socket's
3957 "new_connection" signal.
3959 * libsoup/soup-context.c (try_create_connection,
3960 soup_context_connect_cb): Update for socket changes. Replace
3961 SOUP_CONNECT_ERROR codes with plain SOUP_ERROR codes.
3963 * libsoup/soup-misc.c (soup_signal_connect_once): Utility function
3964 to connect to a signal handler and connect another function to
3965 clean up the first signal handler after its first invocation.
3966 (Lets us use signals to replace one-off callbacks.)
3968 * libsoup/soup-private.h: Remove SoupSocketPrivate since it is
3969 actually private now.
3970 (struct _SoupServer): Remove accept_tag.
3972 * libsoup/soup-queue.c (soup_queue_read_done_cb, start_request):
3973 Don't unref the iochannel.
3974 (soup_queue_connect_cb): Takes a SoupKnownErrorCode now.
3976 * libsoup/soup-socks.c: Update for socket/address changes
3978 * tests/simple-httpd.c (main):
3979 s/SOUP_SERVER_ANY_PORT/SOUP_ADDRESS_ANY_PORT/
3980 * tests/simple-proxy.c (main): Likewise
3982 * tests/timeserver.c: Update for SoupSocket's "new_connection"
3983 signal, and for SoupAddress changes.
3985 2003-08-14 Dan Winship <danw@ximian.com>
3987 * libsoup/soup-connection.c: New, split out from soup-context and
3988 made into a GObject.
3989 (soup_connection_disconnect): Disconnects the connection and emits
3990 a signal. (Replaces the old "keep_alive" flag.)
3991 (soup_connection_is_connected): Checks if the connection is still
3993 (connection_died): Just disconnect, rather than freeing the
3994 connection. This way if anyone else is still referencing it they
3995 won't end up with an invalid pointer.
3997 * libsoup/soup-context.c: Make this a GObject, remove all the
3998 SoupConnection code. Add an "ntlm_auths" field to SoupHost so that
3999 SoupContext can keep track of connection auth stuff there without
4000 SoupConnection needing to care. Various other updates.
4002 * libsoup/soup-private.h: Remove SoupContext and SoupConnection
4005 * libsoup/*.c, tests/get.c: Update for context/connection changes
4007 * libsoup/soup-socks.c (soup_connect_socks_proxy): Change the
4008 definition to deal with the fact that there's no
4009 soup_connection_get_context any more.
4011 * libsoup/soup-queue.c (soup_queue_read_headers_cb): Don't deal
4012 with connection persistence here.
4013 (soup_queue_read_done_cb): Do it here instead. Disconnect the
4014 connection when appropriate.
4015 (proxy_connect, proxy_https_connect, proxy_https_connect_cb):
4016 Reference-count the connection properly. (I think.)
4018 * libsoup/soup-marshal.list: New, for SoupConnection's
4019 "disconnected" signal.
4021 * libsoup/Makefile.am: add rules to build soup-marshal.[ch]
4023 * configure.in: Use AM_PATH_GLIB_2 rather than pkg-config, so that
4024 GLIB_GENMARSHAL gets set too.
4026 2003-08-14 Dan Winship <danw@ximian.com>
4028 * libsoup/soup-error.c: Fix a spelling mistake.
4030 * libsoup/*.c: Fix use of @/%/#/() in gtk-doc comments
4032 2003-08-12 Dan Winship <danw@ximian.com>
4034 * libsoup/soup-auth.c: Make this an abstract GObject. Tweak some
4035 of the interfaces around a little bit.
4037 * libsoup/soup-auth-basic.c: subclass for Basic auth
4039 * libsoup/soup-auth-digest.c: subclass for Digest auth
4041 * libsoup/soup-auth-ntlm.c: subclass for NTLM auth. Move all of
4042 the code from soup-ntlm.c here, and make it private.
4044 * libsoup/soup-ntlm.c: gone
4046 * libsoup/soup-misc.h: Remove the definition of SoupAuthType from
4047 here, and change the signature of SoupAuthorizeFn.
4049 * libsoup/soup-context.c: Use g_object_unref to free auths, use
4050 methods instead of directly access private fields.
4052 * libsoup/soup-queue.c: Likewise
4054 * libsoup/soup-server-auth.c (soup_server_auth_free): Remove all
4055 NTLM references. We have no plans to implement server-side NTLM
4058 * tests/auth-test.c (identify_auth): Update for auth api changes
4060 2003-08-12 Dan Winship <danw@ximian.com>
4062 * configure.in (GLIB): add gobject-2.0 to the PKG_CHECK_MODULES
4065 * libsoup/soup-address.c: Make this a GObject.
4066 (soup_address_ref, soup_address_unref): Gone.
4067 (soup_address_copy): Gone. Wasn't being used anyway.
4069 * libsoup/soup-dns.c: Move all of the DNS code and caching stuff
4070 here from soup-address.c, so that soup-address doesn't need to
4071 worry about trying to cache zero-ref addresses.
4073 * libsoup/soup-socket.c: Make this a GObject. Use "guint"
4074 consistently for port numbers.
4075 (soup_socket_ref, soup_socket_unref): Gone.
4077 * libsoup/soup-private.h: Change the SoupSocket definition to be
4078 SoupSocketPrivate. (Still need to keep this here since soup-server
4079 pokes around in its internals.)
4080 (SOUP_MAKE_TYPE): Copied from gal's E_MAKE_TYPE.
4082 * libsoup/soup-server.c (read_done_cb, write_done_cb): Unref the
4083 reader/writer rather than leaking them.
4085 * libsoup/*: Use GObject methods for socket/address refcounting
4087 * tests/auth-test.c (main)
4088 * tests/timeserver.c (main): Call g_type_init.
4090 * tests/get.c (main): Call g_type_init.
4091 (get_url, got_url): Fix some bugs that could make -r mode get into
4092 infinite loops downloading the same files over and over. Plug some
4093 memory leaks to make this more useful for valgrinding libsoup.
4095 * tests/simple-httpd.c (main): Call g_type_init. Set up a signal
4096 handler for SIGINT so we can exit cleanly, since valgrind won't
4097 give a leak report if you don't. Plug a few memory leaks.
4099 * tests/simple-proxy.c (main): Likewise
4101 2003-08-12 Dan Winship <danw@ximian.com>
4103 Pull over some new test programs from the soup-refactoring branch,
4104 along with the SoupUri changes they depend on.
4106 * tests/simple-httpd.c: A really simple HTTP server, to test the
4109 * tests/simple-proxy.c: An even simpler HTTP proxy
4111 * tests/get.c: Add "-r" flag to recursively get files (thereby
4112 testing multiple-connections-at-once code). Also good for setting
4113 up a tree to use with simple-httpd.
4115 * tests/timeserver.c (main): Fix a bug. (s/ipv6/ipv4/ in the
4118 * tests/uri-parsing.c: Regression test for the new soup-uri.c
4120 * libsoup/soup-uri.c: Rewrite/update to conform to RFC 2396, and
4121 pull in some optimizations from camel-url. Also, make SoupProtocol
4122 a GQuark so we can still compare them with ==, but we can also
4123 recognize any protocol.
4124 (soup_uri_new_with_base): New, to merge base and relative URIs
4125 (soup_uri_to_string): Update this. Change the "show_password" flag
4126 (which we always passed FALSE for) to "just_path", for places that
4127 want the path+query without the protocol, host, etc.
4129 * libsoup/soup-queue.c (soup_get_request_header): Just use
4130 soup_uri_to_string to generate the request URI.
4132 * libsoup/soup-auth.c (compute_response, digest_auth_func): Use
4133 "soup_uri_to_path (uri, TRUE)" rather than trying to reassemble
4134 the URI by hand badly.
4135 * libsoup/soup-server-auth.c (parse_digest): Likewise
4137 * libsoup/soup-socks.c (soup_connect_socks_proxy): Change a
4138 switch() to an series of if()s since SOUP_PROTOCOL_* aren't
4141 * libsoup/soup-context.c (soup_context_uri_hash,
4142 soup_context_uri_equal): s/querystring/query/
4144 2003-08-12 Dan Winship <danw@ximian.com>
4146 * configure.in: Bump API version to 2.2 and package version to
4147 2.1.0. Remove NSS and OpenSSL checks and proxy-related config. Use
4148 libgnutls-config to find GNUTLS.
4150 * libsoup-2.2.pc.in: Update, and rename from soup-2.0.pc
4152 * Makefile.am: Update for pc file rename
4154 * libsoup/Makefile.am: s/2.0/2.2/ everywhere. Remove NSS, OpenSSL,
4155 and libsoup-ssl-proxy stuff.
4157 * libsoup/soup-ssl-proxy.c
4158 * libsoup/soup-nss.[ch]
4159 * libsoup/soup-openssl.[ch]: gone
4161 * libsoup/soup-ssl.c: remove NSS and OpenSSL bits
4163 * tests/Makefile.am (get_LDADD, timeserver_LDADD,
4164 auth_test_LDADD): Update libsoup version
4166 2003-08-07 Dan Winship <danw@ximian.com>
4168 * libsoup/soup-auth.c (soup_auth_lookup, soup_auth_set_context,
4169 soup_auth_invalidate): These are all really SoupContext functions,
4170 so move them to soup-context.c (and rename them appropriately).
4171 (soup_auth_get_protection_space): New method to get the
4172 "protection space" of an auth (paths where it is valid).
4173 (soup_auth_invalidate): New method to try to un-authenticate an
4174 auth (so we can keep the domain info cached even if the auth info
4176 (basic_pspace_func): Basic protection space is all directories
4177 below the current one.
4178 (basic_invalidate_func): Clear the encoded username/password
4179 (digest_pspace_func): Digest protection space is either the whole
4180 server, or "what the domain parameter says" (though we don't deal
4181 with cross-host domains).
4182 (digest_invalidate_func): Return FALSE; bad digest auth info isn't
4184 (digest_parse_func, digest_free): Set/free domain parameter
4185 (ntlm_pspace): NTLM protection space is always the whole server.
4186 (ntlm_invalidate): Clear the auth state.
4187 (soup_auth_new_ntlm): Make this non-static
4188 (SoupAuth): Replace the quad-state "status" field with an
4189 "authenticated" boolean.
4191 * libsoup/soup-private.h (SoupHost): Replace the "valid_auths"
4192 hash with separate "auth_realms" (path->realm) and "auths"
4193 (realm->auth) hashes. Also add a "use_ntlm" flag.
4195 * libsoup/soup-context.c (soup_context_unref): Update SoupHost
4197 (connection_free): Don't the connection's auth, just free it.
4198 (soup_context_lookup_auth): Formerly soup_auth_lookup, but now
4199 does two-stage lookup (path->realm then realm->auth) and also
4200 deals with NTLM hacks.
4201 (soup_context_update_auth): Mostly formerly soup_auth_set_context,
4202 but also large parts of authorize_handler. Updates the auth hashes
4203 based on information from a 401 or 407 response. Does a better job
4204 than authorize_handler did of not throwing away good information.
4205 (soup_context_preauthenticate): New; fakes up auth info so that
4206 requests will end up using authentication without the server
4207 needing to return an error first.
4208 (soup_context_authenticate_auth): Moved out of authorize_handler
4209 so it can be used at request-sending time too, if we know that we
4210 need it. (That way we can avoid requeuing the request if it isn't
4211 going to be able to be authenticated.)
4212 (soup_context_invalidate_auth): Sort of like the old
4213 soup_auth_invalidate, but only destroys the auth data, while still
4214 remembering the path->realm mapping.
4216 * libsoup/soup-message.c (authorize_handler): Mostly moved into
4217 soup_context_update_auth.
4218 (maybe_validate_auth): Remove this; it was only useful because of
4219 bugs elsewhere in the auth handling.
4221 * libsoup/soup-queue.c (soup_encode_http_auth): Update for
4222 soup_context_lookup_auth. If the returned auth isn't
4223 authenticated, call soup_context_authenticate_auth() on it.
4225 * tests/auth-test.c: New (from soup-refactoring branch). Tests
4226 that the Basic/Digest auth code does the right thing. (TODO: find
4227 a good way to add NTLM tests too.)
4229 * tests/Makefile.am (check_PROGRAMS): add auth-test
4231 2003-07-29 Dan Winship <danw@ximian.com>
4233 * configure.in: 1.99.25 ("Potato and Leek Soup")
4235 * libsoup/soup-message.c (requeue_read_finished,
4236 release_connection): Free the passed-in body data. Otherwise the
4237 response body ends up getting leaked on most 3xx and 4xx
4239 (soup_message_cleanup): Remove a piece of code that didn't
4240 actually do anything and its associated confused comment.
4242 * libsoup/soup-auth.c (ntlm_free): plug an occasional NTLM auth leak
4244 * libsoup/soup-context.c (connection_free): plug a non-occasional
4247 2003-06-26 Joe Shaw <joe@ximian.com>
4249 * configure.in: Version 1.99.24
4251 2003-06-24 Dan Winship <danw@ximian.com>
4253 * configure.in: Check pkgconfig for openssl, since 0.9.7 (a) uses
4254 it, and (b) depends on lots of new things sometimes (like on RH9).
4256 * libsoup/soup-openssl.c:
4257 * libsoup/soup-ssl-proxy.c: Change #ifdef HAVE_OPENSSL_SSL_H to
4258 just #ifdef HAVE_OPENSSL since the header check doesn't get run in
4261 2003-06-19 Dan Winship <danw@ximian.com>
4263 * libsoup/soup-queue.c (soup_queue_read_done_cb): unref the
4264 old read_tag before changing/clearing it.
4265 (soup_queue_write_done_cb): Likewise with the write_tag.
4267 * libsoup/soup-transfer.c (issue_final_callback): ref the reader
4268 around the stop+callback.
4269 (soup_transfer_write_cb): Likewise.
4271 2003-06-12 Dan Winship <danw@ximian.com>
4273 * libsoup/soup-transfer.c (SoupReader, SoupWriter): add a
4275 (soup_transfer_read, create_writer): Set initial ref_count to 2
4276 (one for soup-transfer, one for the caller).
4277 (soup_transfer_read_ref, soup_transfer_read_unref): ref/unref a
4279 (soup_transfer_read_stop): Clears the GIOChannel callbacks and
4280 drops soup-transfer's ref.
4281 (soup_transfer_read_cancel): Now just a stop+unref
4282 (soup_transfer_write_ref, soup_transfer_write_unref,
4283 soup_transfer_write_stop, soup_transfer_write_cancel): Similarly.
4285 * libsoup/soup-message.c (soup_message_cleanup): when setting up
4286 the "finish reading" callbacks, unref the reader so it will be
4287 destroyed once it's done reading.
4288 (soup_message_requeue): Likewise.
4290 * libsoup/soup-queue.c (soup_queue_read_headers_cb): Update for
4291 prototype change (no longer returns a SoupTransferDone).
4292 (soup_queue_read_chunk_cb): Likewise.
4294 * libsoup/soup-server.c (read_headers_cb): Likewise
4296 2003-06-11 Dan Winship <danw@ximian.com>
4298 * libsoup/soup-transfer.c: Change all functions to take a
4299 SoupReader * or SoupWriter * instead of a guint.
4301 * libsoup/soup-private.h (SoupMessagePrivate): make read_tag and
4302 write_tag pointers instead of guints.
4304 2003-06-02 Chris Toshok <toshok@ximian.com>
4306 * libsoup/soup-ssl.c: remove #include for soup-nss.h
4308 2003-06-02 Chris Toshok <toshok@ximian.com>
4310 * libsoup/Makefile.am (INCLUDES): remove NSS_CFLAGS.
4311 (libsoup_2_0_la_LIBADD): remove NSS_LIBS.
4312 (libsoup_2_0_la_SOURCES): remove soup-nss.[ch]
4314 2003-06-02 Chris Toshok <toshok@ximian.com>
4316 * configure.in: Bump version to 1.99.23.
4318 2003-05-30 Chris Toshok <toshok@ximian.com>
4320 * libsoup/soup-queue.c (soup_queue_error_cb): always force a
4321 reconnect when there's an error with ssl connection. This fixes
4322 #43387, but it runs the risk of sending requests multiple times to
4323 the exchange server, and it results in lots of shorter lived
4324 connections and more forking (in the ssl proxy case), depending on
4325 the length of the operation.
4327 2003-05-21 Dan Winship <danw@ximian.com>
4329 * configure.in: 1.99.22 (codename: French Onion Soup)
4331 2003-05-20 Dan Winship <danw@ximian.com>
4333 * libsoup/soup-message.c (soup_message_requeue): Clear the
4334 write_tag as well so we don't double-cancel it. #43395.
4336 * libsoup/soup-queue.c (soup_queue_error_cb): The connection might
4337 be destroyed by the end of the func, so we have to call
4338 soup_connection_set_used at the beginning.
4340 * libsoup/soup-openssl.c (soup_openssl_read, soup_openssl_write):
4341 Call g_set_error() so that we don't SEGV immediately after
4342 returning G_IO_STATUS_ERROR.
4344 2003-05-08 Joe Shaw <joe@ximian.com>
4346 * configure.in: Bump version to 1.99.21
4348 * libsoup/soup-queue.c (proxy_connect): If the proxy HTTPS
4349 tunnelling fails, the other message which shares our same
4350 connection will free it first, so set ours to NULL.
4352 2003-05-08 Dan Winship <danw@ximian.com>
4354 * libsoup/soup-auth.c (ntlm_auth): If the auth status is PENDING,
4355 return an NTLM request string. Otherwise return the "response"
4356 field (which should include the NTLM authenticate message)
4357 (ntlm_init): Don't bother setting "response" to the NTLM request
4358 string. Just leave it NULL in that case.
4360 * libsoup/soup-message.c (authorize_handler): Never try to reuse
4361 an NTLM auth returned from soup_auth_lookup. Only set the auth on
4362 the connection when it's SOUP_AUTH_STATUS_SUCCESSFUL. Otherwise,
4363 call soup_auth_set_context() on it just like for non-NTLM auth.
4364 The net effect of all of this is that now we record when a context
4365 needs NTLM auth just like with non-NTLM auth, so that that info
4366 gets preserved across connections.
4367 (soup_message_requeue): No longer need the hackery here to
4368 preserve the connection auth state.
4370 2003-05-07 Dan Winship <danw@ximian.com>
4372 * libsoup/soup-context.c (soup_connection_set_in_use): New, to
4373 toggle the connection's in_use flag, and set up the death watch
4374 when it's not in use.
4375 (connection_death): This is only hooked up when the connection is
4376 not in use now, so don't need to check that. Should fix the
4377 infinite connection_death loop.
4378 (soup_connection_is_new): Keep a distinct "new" flag rather than
4379 defining "new" as "has been released at least once".
4380 (soup_connection_set_used): Mark a connection no-longer new.
4381 (soup_context_connect_cb): Mark the connection as new. Don't set
4382 up the death watch since it's in_use.
4383 (try_existing_connections): Use soup_connection_set_in_use.
4384 (soup_connection_release): Likewise
4386 * libsoup/soup-message.c (requeue_read_finished): Call
4387 soup_connection_set_used so that the connection isn't still
4388 considered new when we send the message the second time.
4390 * libsoup/soup-queue.c (soup_queue_error_cb): Call
4391 soup_connection_set_used (assuming we don't close the connection)
4392 (soup_queue_read_done_cb): Likewise.
4394 * libsoup/soup-transfer.c (soup_transfer_read_cb): If we read
4395 nothing, call soup_transfer_read_error_cb rather than just
4396 cancelling, or else it will get cancelled again later.
4398 2003-05-07 Dan Winship <danw@ximian.com>
4400 * soup-2.0.pc.in (Libs): Don't put @OPENSSL_LIBS@ here; the
4401 library doesn't depend on them, only the proxy does. #42473
4403 2003-05-06 Dan Winship <danw@ximian.com>
4405 * src/libsoup/soup-message.c (global_handlers): Change the
4406 redirect handler to be a RESPONSE_ERROR_CLASS_HANDLER for
4407 SOUP_ERROR_CLASS_REDIRECT rather than a RESPONSE_HEADER_HANDLER
4408 for "Location" to get around the non-64-bit-clean union
4409 initialization pointed out by Jeremy Katz <katzj@redhat.com>.
4410 (redirect_handler): Update for that.
4412 2003-04-28 Dan Winship <danw@ximian.com>
4414 * configure.in: 1.99.20
4416 * libsoup/soup-transfer.c (soup_transfer_read_error_cb): Make sure
4417 we always call UNIGNORE_CANCEL. Might fix #41971
4419 2003-04-25 Dan Winship <danw@ximian.com>
4421 * libsoup/soup-queue.c (soup_queue_error_cb): if an old connection
4422 suddenly gets an io error while reading or writing, assume it's a
4423 timeout or something, close the connection, and requeue the
4426 2003-04-23 Dan Winship <danw@ximian.com>
4428 * libsoup/soup-message.c (soup_message_cleanup): Don't set up the
4429 soup-transfer callbacks to keep reading off the connection unless
4430 we're actually going to keep the connection around afterward.
4431 Otherwise we can just close it.
4433 * libsoup/soup-transfer.c: Re-kludge the awful IGNORE_CANCEL
4434 thingy so that it's possible to cancel a read from inside a
4435 callback so that the above change actually works instead of just
4438 2003-04-20 Rodney Dawes <dobey@ximian.com>
4440 * configure.in: Up version to 1.99.18
4441 * libsoup/Makefile.am: Line separator after GNUTLS_CFLAGS
4443 2003-04-11 Dan Winship <danw@ximian.com>
4445 * libsoup/soup-context.c (soup_connection_purge_idle): New
4446 function to close all idle connections. (Needed for #41117 or else
4447 there's no way to force-discard NTLM authentication.)
4449 * libsoup/soup-queue.c (soup_queue_shutdown): Use it
4451 2003-04-10 Joe Shaw <joe@ximian.com>
4453 * libsoup/soup-queue.c (proxy_https_connect):
4454 proxy_https_connect_cb() might not get called if connecting to the
4455 proxy fails, and it causes us to double-free the connection.
4456 Always set the message's connection to NULL before freeing it.
4458 2003-04-09 Dan Winship <danw@ximian.com>
4460 * configure.in: 1.99.17
4462 2003-04-07 Dan Winship <danw@ximian.com>
4464 * libsoup/soup-context.c (connection_death): Revert Joe's changes.
4465 We can't release the connection there because there may be
4466 SoupMessages still pointing to it. (Needs to be revisited.)
4468 2003-04-03 JP Rosevear <jpr@ximian.com>
4470 * libsoup/soup-ssl.c (soup_ssl_hup_waitpid): guard against EINTR
4471 error during waitpid
4473 * libsoup/soup-address.c: ditto
4475 2003-04-02 Joe Shaw <joe@ximian.com>
4477 * libsoup/soup-context.c (connection_death): Only drop the
4478 connection if we get an error condition on the channel. Fixes a
4481 2003-04-02 Joe Shaw <joe@ximian.com>
4483 * libsoup/soup-context.c (connection_death): Just call
4484 soup_connection_release() from here and return whether the
4485 connection is in use.
4487 2003-03-31 Ian Peters <itp@ximian.com>
4489 * libsoup/soup-gnutls.c (soup_gnutls_close): loop on gnutls_bye in
4490 case of EAGAIN or EINTR, since shutting down an SSL connection
4491 requires more than just closing a socket.
4493 2003-03-28 Dan Winship <danw@ximian.com>
4495 * libsoup/soup-message.c (soup_message_set_context): If the new
4496 context points to a different server from the old context, call
4497 soup_message_cleanup. Otherwise it tries to reuse the old
4500 2003-03-25 Joe Shaw <joe@ximian.com>
4502 * configure.in: Bump up to 1.99.16
4504 2003-03-24 Joe Shaw <joe@ximian.com>
4506 * soup-error.[ch]: Add SOUP_ERROR_SSL_FAILED which gives a
4507 slightly better error message on various SSL failures than the
4510 * soup-queue.c (soup_queue_error_cb): Throw the
4511 SOUP_ERROR_SSL_FAILED error when we fail an SSL handshake.
4513 2003-03-21 Joe Shaw <joe@ximian.com>
4515 * soup-server.c: Use non-deprecated g_main_loop_* calls
4517 (soup_server_unref): Don't unref the main loop if it's NULL.
4518 Fixes a glib warning.
4520 2003-03-18 Dan Winship <danw@ximian.com>
4522 * configure.in: comment out NSS checks. The NSS code doesn't work
4523 and there are no current plans to fix it.
4525 * README (Features): Mention GnuTLS, remove NSS and the rest of
4526 the "Planned Features" section.
4528 * MAINTAINERS: remove Alex
4530 * libsoup/soup-openssl.c (soup_openssl_get_iochannel): Bump the
4531 timeout to 10 seconds (and get rid of the 3 tries) so we don't
4532 fail to connect just because the server is slow/far away.
4534 2003-03-17 Joe Shaw <joe@ximian.com>
4536 * configure.in: Bump up to 1.99.15.
4538 2003-03-12 Ian Peters <itp@ximian.com>
4540 * libsoup/soup-gnutls.c: because creating client credentials is
4541 expensive, keep the same one around as long as possible, only
4542 recreating it if the ssl_ca_file changes. Wrap
4543 gnutls_certificate_credentials in a refcounted struct to avoid
4544 freeing it while another established connection may potentially
4545 need it (say, to rehandshake).
4547 2003-03-11 Frank Belew <frb@ximian.com>
4549 * soup-2.0.pc.in: add ssl libs to defaults, since ssl doesn't
4552 2003-03-10 Joe Shaw <joe@ximian.com>
4554 * configure.in: Bump up to 1.99.14.
4556 * configure.in, libsoup/Makefile.am, libsoup/soup.gnutls.[ch],
4557 libsoup/soup-ssl.c: Add support for GnuTLS. Patch from Ian
4560 2003-03-07 Joe Shaw <joe@ximian.com>
4562 * configure.in: Bump up to 1.99.13.
4564 * libsoup/soup-context.c (soup_context_connect_cb): Add G_IO_IN to
4565 the list of conditions to watch. If the remote end hangs up the
4566 connection, we'll get a successful read of 0 bytes, not a HUP.
4567 The connection will have to be released by the point we check for
4568 it in connection_death().
4570 * libsoup/soup-queue.c (soup_queue_error_cb): Get rid of some
4571 (apparently) errant resetting of the read and write tags. I think
4572 this might have been causing some reentrancy and crashes.
4574 * libsoup/soup-socket.c (soup_socket_get_iochannel): Set the IO
4575 channel to NULL encoding and not buffered.
4577 * libsoup/soup-transfer.c (soup_transfer_read_cb): Remove some
4580 2003-02-28 Joe Shaw <joe@ximian.com>
4582 * configure.in: Bump up to 1.99.12.
4584 * libsoup/soup-transfer.c (soup_transfer_read_cb): We can get a
4585 header_len of 0 and a total_read of 0 in the case of a SIGPIPE; in
4586 this case we probably don't want to call the error callback, we
4587 just want to act like our transfer was cancelled.
4589 2003-02-27 Joe Shaw <joe@ximian.com>
4591 Try to apply some order to the iochannel refcounting...
4593 * configure.in: Bump up to 1.99.11.
4595 * libsoup/soup-context.c (soup_connection_get_iochannel): The
4596 connections needs to own a reference to the iochannel! If we're
4597 using HTTPS, release the ref we get from soup_socket_get_iochannel
4598 and replace it with the ref we get from soup_ssl_get_iochannel().
4599 Then, always ref the channel that we return (ugh, but that's the
4601 (connection_free): Release the connection's ref to the iochannel.
4603 * libsoup/soup-ssl.c (soup_ssl_get_iochannel_real): Ref the
4604 iochannel. The reference we pass back will be owned by the
4606 (soup_ssl_hup_waitpid): Release our ref.
4608 2003-02-27 Joe Shaw <joe@ximian.com>
4610 * configure.in: Bump up to 1.99.10.
4612 * libsoup/soup-ssl.c (soup_ssl_get_iochannel_real): Ref the
4613 iochannel, return to the status quo. Sigh.
4615 2003-02-26 Joe Shaw <joe@ximian.com>
4617 * configure.in: Bump up to 1.99.9.
4619 * libsoup/soup-ssl.c (soup_ssl_hup_waitpid): Comment out the unref,
4620 it's causing problems with HTTPS and proxies; the iochannel
4621 refcounting is waaaaaay horked.
4623 2003-02-26 Frank Belew <frb@ximian.com>
4625 * libsoup/Makefile.am: added workaround to link ssl-proxy statically
4627 2003-02-11 Joe Shaw <joe@ximian.com>
4629 * configure.in: Bump up to 1.99.8 for snaps.
4631 * libsoup/soup-address.c (soup_gethostbyname): Fix this for Solaris.
4632 It returns the address to the resulting hostent or NULL on failure,
4633 unlike Linux which returns an error code.
4635 2003-02-11 Joe Shaw <joe@ximian.com>
4637 * configure.in: Bump up to 1.99.7 for snaps.
4639 * libsoup/soup-openssl.c (soup_openssl_get_iochannel): Print out
4640 the error string from OpenSSL if we can't establish a connection.
4642 2003-02-04 Joe Shaw <joe@ximian.com>
4644 * configure.in: Bump up to 1.99.6 for snaps.
4646 * libsoup/soup-server.c (destroy_message): We already assigned
4647 chan, so don't reassign it, and unref it in all cases.
4648 (issue_bad_request): Always unref after a call to
4649 soup_socket_get_iochannel(), because it refs it.
4650 (conn_accept): Fix some funky GIOChannel reffing here.
4652 * libsoup/soup-ssl.c (soup_ssl_get_iochannel_real): Don't call
4653 g_io_channel_ref() on the socket. This is the exact opposite of
4654 what we want to do. Create a temporary structure containing the
4655 parent pid and the old socket and unref the socket when our
4656 callback is called. This should fix GIOChannels being leaked on
4659 * libsoup/soup-ssl-proxy.c: Always close the GIOChannels after the
4662 2003-01-22 Joe Shaw <joe@ximian.com>
4664 * configure.in: Bump up to 1.99.5 for the snaps.
4666 * libsoup/soup-address.c (soup_address_new): If we found the
4667 address in our hash, we need to return NULL or else Soup will
4668 think we're doing an async lookup and do some cancellation on
4669 us. Besides, we were returning the wrong type anyway and it
4670 was crashing things.
4672 2003-01-17 Joe Shaw <joe@ximian.com>
4674 * libsoup/soup-ssl-proxy.c (soup_ssl_proxy_readwrite): It's not
4675 uncommon for us to get a G_IO_ERROR_AGAIN when trying to write
4676 out, so keep trying until we succeed.
4678 2003-01-10 Joe Shaw <joe@ximian.com>
4680 * libsoup/soup-openssl.c (verify_cb): Load some X509 and SSL error
4681 strings and print out the error when the cert can't verify.
4683 2003-01-09 Dan Winship <danw@ximian.com>
4685 * libsoup/soup-address.c (soup_gethostbyname): Fix a memcpy
4686 overrun noticed by valgrind
4688 2002-12-20 Joe Shaw <joe@ximian.com>
4690 * libsoup/soup-server.c (soup_server_new_with_host): Added.
4691 Starts a server only on the interface specified, instead of all
4694 2002-12-16 Jeremy Katz <katzj@redhat.com>
4696 * configure.in: use $libdir instead of /usr/lib when looking for
4699 2002-12-11 Joe Shaw <joe@ximian.com>
4701 * libsoup/soup-queue.c (proxy_https_connect_cb): I am an idiot.
4702 Don't set a variable to NULL and then immediately try to
4705 2002-12-09 Joe Shaw <joe@ximian.com>
4707 * libsoup/soup-openssl.c (soup_openssl_get_iochannel): Put a
4708 timeout on the select()s when we get SSL_ERROR_WANT_READ/WRITE so
4709 we don't hang forever if we don't get more data.
4711 * libsoup/soup-ssl-proxy.c (main): Don't set our fds to blocking
4712 or else we'll hang forever in SSL_connect() if the other side
4715 * libsoup/soup-queue.c (proxy_https_connect_cb): We never want to
4716 release the connection on message free, even if the connection was
4719 2002-12-03 Joe Shaw <joe@ximian.com>
4721 * libsoup/soup-ssl.c (soup_ssl_get_iochannel_real): Call
4722 g_io_channel_set_close_on_unref() on the second half of the socket
4723 pair so we don't leak file descriptors.
4725 2002-12-03 Frank Belew <frb@ximian.com>
4727 * libsoup/soup-address.c: add signal.h to the list of headers to
4730 2002-11-25 Joe Shaw <joe@ximian.com>
4732 * Makefile.am: Build the tests directory again
4734 2002-11-21 Rodney Dawes <dobey@ximian.com>
4736 * configure.in: Don't require autoconf 2.5x, needs to work with 2.13
4738 2002-11-20 Michael Meeks <michael@ximian.com>
4740 * configure.in: require autoconf 2.52 not 2.53.
4742 2002-11-18 Dan Winship <danw@ximian.com>
4744 * libsoup/soup-address.c (soup_address_hash): Don't use s6_addr32
4745 since it's apparently non-portable. Use s6_addr instead.
4746 (soup_gethostbyaddr): fix a sometimes-uninitialized variable.
4748 * libsoup/soup-error.c: Fix spelling of
4749 SOUP_ERROR_MOVED_PERMANENTLY and its description.
4751 * libsoup/soup-message.c (soup_message_get_request_header, etc):
4752 Remove long-deprecated API.
4754 * libsoup/soup-socket.c (soup_socket_connect): remove unused
4757 * libsoup/soup-openssl.c (soup_openssl_read): Use gsize.
4758 * libsoup/soup-server.c (cgi_read): Likewise
4759 * libsoup/soup-socks.c (soup_socks_write, soup_socks_read):
4761 * libsoup/soup-ssl-proxy.c (soup_ssl_proxy_readwrite): Likewise.
4762 * libsoup/soup-transfer.c (soup_transfer_read_cb,
4763 soup_transfer_write_cb): Likewise.
4765 * tests/timeserver.c: Add "-6" to listen on the IPv6 local address
4766 instead of IPv4. (Tested on OS X.)
4768 2002-11-15 Dan Winship <danw@ximian.com>
4770 * libsoup/*: Change old Helix Code refs to Ximian (and update
4773 2002-11-15 Frank Belew <frb@ximian.com>
4775 * tests/Makefile.am: uncomment lines to make timeserver build
4778 2002-11-14 Joe Shaw <joe@ximian.com>
4780 * libsoup/soup-address.c (soup_address_new): When we get an
4781 address from the hash, call our address lookup callback or else
4782 the connection will hang.
4784 2002-11-13 Dan Winship <danw@ximian.com>
4786 * tests/timeserver.c: Oops, commit this.
4788 * tests/Makefile.am (noinst_PROGRAMS): reenable timeserver.
4790 2002-11-13 Joe Shaw <joe@ximian.com>
4792 * libsoup/Makefile.am: Replace the BINDIR define with LIBEXECDIR.
4793 (install-exec-hook): Install libsoup-ssl-proxy into libexecdir
4796 * libsoup/soup-openssl.c (soup_openssl_close): Call SSL_shutdown()
4797 to properly shut down the SSL connection before closing the
4800 * libsoup/soup-ssl-proxy.c (soup_ssl_proxy_readwrite): Close the
4801 iochannels before quitting the main loop.
4803 * tests/Makefile.am: disable building timeserver, the source file
4806 2002-11-12 Dan Winship <danw@ximian.com>
4808 * configure.in: Check for IPv6 support in networking headers.
4810 * libsoup/soup-address.c: Make the internal structure of
4811 SoupAddress entirely private, and make SoupAddress be more like a
4812 hostent and less like a sockaddr. (Ie, make it not have a port
4813 associated with it.) Document undocumented functions. Add
4814 completely-untested support for IPv6.
4815 (soup_address_new_from_sockaddr): New, to parse a sockaddr into a
4816 SoupAddress and a port.
4817 (soup_address_ipv4_any, soup_address_ipv6_any): Return static
4818 addresses corresponding to the IPv6 and IPv6 "any" addresses.
4819 (soup_address_get_canonical_name): Use inet_ntop/inet_ntoa.
4820 (soup_address_make_sockaddr): Now constructs a new sockaddr, which
4821 may be a sockaddr_in or sockaddr_in6.
4822 (soup_address_gethostname, soup_address_gethostaddr): Remove
4823 these. They aren't reliable, especially on multihomed hosts.
4824 (soup_gethostbyname, soup_gethostbyaddr): support IPv6
4825 (soup_address_new): Keep pending lookups in a separate hash table
4826 from completed lookups. Fix a bug when canceling a lookup when
4827 there was more one outstanding request for it.
4828 (soup_address_lookup_in_cache): Removed.
4830 * libsoup/soup-socket.c: Add a port field to SoupSocket (since
4831 it's not in SoupAddress any more).
4832 (soup_socket_connect): Simplify this. Don't use
4833 soup_address_lookup_in_cache, just call soup_address_new, since we
4834 already know the code can deal with the callback being invoked
4836 (soup_socket_new_sync, soup_socket_new): Take a port argument.
4837 (soup_socket_server_new): Take a SoupAddress to use as the local
4838 address to bind to. This lets the caller choose between the IPv4
4839 and IPv6 "any" addresses, and also lets you bind to a single
4840 interface of a multi-homed machine.
4841 (soup_socket_server_accept, soup_socket_server_try_accept): Merge
4844 * libsoup/soup-server.c (soup_server_new): Pass
4845 soup_address_ipv4_any() to soup_socket_server_new().
4847 * libsoup/soup-socks.c (soup_connect_socks_proxy,
4848 soup_socks_write): Fix up for the API changes, but it won't work
4851 * tests/timeserver.c: Another really simple test, for the server
4854 * tests/Makefile.am: build timeserver
4856 2002-11-11 Dan Winship <danw@ximian.com>
4858 * libsoup/soup-address.c: Move the SoupAddress code from
4859 soup-socket.c and soup-socket-unix.c to here.
4861 * libsoup/soup-socket.c: Move the remaining code from
4862 soup-socket-unix.c here.
4864 * libsoup/soup-socket-unix.c: Gone
4866 * tests/get.c: really really trivial test program
4868 * configure.in (AC_OUTPUT):
4869 * Makefile.am (SUBDIRS): add tests/
4871 2002-11-05 Dan Winship <danw@ximian.com>
4873 * Split libsoup out of soup. ChangeLog.old contains the original
4876 * Makefile.am, etc: Fix things up to work with the new directory
4877 layout. Disable docs until we fix them.
4879 * autogen.sh: Use gnome-autogen.sh
4881 * configure.in: Require autoconf 2.53. Remove stuff that was only
4882 needed for httpd or wsdl code. Remove glib1 support. Bump version
4885 * libsoup/Makefile.am: Rename library to libsoup-2.0, put includes
4886 in ${includedir}/soup-2.0
4888 * libsoup/*: Merge soup-0-7 back onto the trunk. Remove
4889 SOAP-specific stuff, Windows support, and other things that
4890 weren't being maintained.
4892 * soup-config.in, soupConf.sh: Kill these. We only support