soup-auth-manager: split out connection handling
authorDan Winship <danw@gnome.org>
Wed, 12 Dec 2012 09:19:00 +0000 (10:19 +0100)
committerDan Winship <danw@gnome.org>
Wed, 2 Jan 2013 20:34:12 +0000 (15:34 -0500)
commit586aef885f64352bbd3c1b9e68ae2020f33d5833
tree2bb0a0f5a0c6e021553f8b6d02cd01d40689ab11
parentb24b8324b15250865f7f44178cb5c5fba80074e8
soup-auth-manager: split out connection handling

Add a new SoupConnectionAuth class to help with connection tracking,
and make SoupAuthNTLM a subclass of it. Allow a single SoupAuthNTLM to
carry state information about multiple connections.

Make SoupSession store the SoupConnection a SoupMessage is associated
with on the message, and use that from SoupConnectionAuth rather than
tracking sockets by hand like SoupAuthManager had previously done.
Remove the connection tracking in SoupAuthManager, since it is no
longer needed.
14 files changed:
docs/reference/Makefile.am
docs/reference/libsoup-2.4-sections.txt
libsoup/Makefile.am
libsoup/libsoup-2.4.sym
libsoup/soup-auth-manager.c
libsoup/soup-auth-ntlm.c
libsoup/soup-auth-ntlm.h
libsoup/soup-auth.c
libsoup/soup-auth.h
libsoup/soup-connection-auth.c [new file with mode: 0644]
libsoup/soup-connection-auth.h [new file with mode: 0644]
libsoup/soup-message-private.h
libsoup/soup-message.c
libsoup/soup-session.c