diff options
author | Dan Winship <danw@gnome.org> | 2012-12-12 10:19:00 +0100 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-01-02 15:34:12 -0500 |
commit | 586aef885f64352bbd3c1b9e68ae2020f33d5833 (patch) | |
tree | 2bb0a0f5a0c6e021553f8b6d02cd01d40689ab11 /libsoup/soup-auth.h | |
parent | b24b8324b15250865f7f44178cb5c5fba80074e8 (diff) | |
download | libsoup-586aef885f64352bbd3c1b9e68ae2020f33d5833.tar.gz |
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.
Diffstat (limited to 'libsoup/soup-auth.h')
-rw-r--r-- | libsoup/soup-auth.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libsoup/soup-auth.h b/libsoup/soup-auth.h index 8abda8e0..824857e2 100644 --- a/libsoup/soup-auth.h +++ b/libsoup/soup-auth.h @@ -44,8 +44,11 @@ typedef struct { char * (*get_authorization) (SoupAuth *auth, SoupMessage *msg); + + gboolean (*is_ready) (SoupAuth *auth, + SoupMessage *msg); + /* Padding for future expansion */ - void (*_libsoup_reserved1) (void); void (*_libsoup_reserved2) (void); void (*_libsoup_reserved3) (void); void (*_libsoup_reserved4) (void); @@ -76,6 +79,9 @@ void soup_auth_authenticate (SoupAuth *auth, const char *username, const char *password); gboolean soup_auth_is_authenticated (SoupAuth *auth); +SOUP_AVAILABLE_IN_2_42 +gboolean soup_auth_is_ready (SoupAuth *auth, + SoupMessage *msg); char *soup_auth_get_authorization (SoupAuth *auth, SoupMessage *msg); |