libsoup r992 - in branches/libsoup-2.4: . libsoup tests



Author: danw
Date: 2007-12-20 16:38:07 +0000 (Thu, 20 Dec 2007)
New Revision: 992
ViewCVS link: http://svn.gnome.org/viewcvs/libsoup?rev=992&view=rev

Added:
   branches/libsoup-2.4/libsoup/soup-auth-manager.c
   branches/libsoup-2.4/libsoup/soup-auth-manager.h
Modified:
   branches/libsoup-2.4/ChangeLog
   branches/libsoup-2.4/libsoup/Makefile.am
   branches/libsoup-2.4/libsoup/soup-auth-basic.c
   branches/libsoup-2.4/libsoup/soup-auth-digest.c
   branches/libsoup-2.4/libsoup/soup-auth.c
   branches/libsoup-2.4/libsoup/soup-auth.h
   branches/libsoup-2.4/libsoup/soup-session-private.h
   branches/libsoup-2.4/libsoup/soup-session.c
   branches/libsoup-2.4/libsoup/soup-uri.c
   branches/libsoup-2.4/tests/auth-test.c
   branches/libsoup-2.4/tests/httpd.conf.in
Log:
	* libsoup/soup-auth-manager.c: Move auth-related code from
	SoupSession and SoupAuth here, and make various cleanups and
	beginnings of cleanups.

	* libsoup/soup-session.c: lots of stuff moved to
	soup-auth-manager.c

	* libsoup/soup-auth.c (soup_auth_new_from_headers): partly moved
	to soup-auth-manager.c, partly renamed to soup_auth_new().
	(soup_auth_update): new method to update an existing auth based on
	a new WWW-Authenticate/Proxy-Authenticate header. Also replaces
	the old "construct" method.

	* libsoup/soup-auth-digest.c (update): Implement. If the new auth
	has stale=true, don't invalidate the auth, just update the nonce.
	(get_authorization): add a header handler to the message to catch
	Authentication-Info/Proxy-Authentication-Info headers so that if
	there's a nextnonce, we can start using it. #471380.

	* libsoup/soup-auth-basic.c (update): Implement. (Updating an
	existing Basic auth always invalidates it.)

	* tests/http.conf.in:
	* tests/auth-test.c: add a test for digest nonce handling





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]