diff options
author | Dan Winship <danw@src.gnome.org> | 2003-09-10 21:39:06 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-09-10 21:39:06 +0000 |
commit | 2e90183cf7eb2b84d2952d5364acda88ec97681e (patch) | |
tree | 2ec9f71c56eca110d973c7b644a3bfad0bcb9854 /libsoup/soup-auth.h | |
parent | 2463bf785d9c995ba3662dd57aabfad0b25c2e9d (diff) | |
download | libsoup-2e90183cf7eb2b84d2952d5364acda88ec97681e.tar.gz |
Add "authenticate" and "reauthenticate" signals. (invalidate_auth): Remove
* libsoup/soup-session.c: Add "authenticate" and "reauthenticate"
signals.
(invalidate_auth): Remove the call to soup_auth_invalidate.
(authenticate_auth): soup_auth_fn is gone. If the URI doesn't
contain authentication, then emit "authenticate" or
"reauthenticate" (depending on whether or not this is the first
time we've asked for a password for this auth).
(update_auth_internal): If the server rejects our
username/password, don't bail out immediately. Try doing a
"reauthenticate" first.
* libsoup/soup-misc.c (soup_set_authorize_callback): Gone
* libsoup/soup-auth.c (soup_auth_new_from_header_list): Remove the
"pref" arg.
(soup_auth_invalidate): Remove this; it doesn't actually do
anything useful for us.
* libsoup/soup-auth-basic.c (invalidate): Remove
* libsoup/soup-auth-digest.c: (invalidate): Remove
* libsoup/soup-auth-ntlm.c: (invalidate): Remove
* libsoup/soup-uri.c: Remove all references to "authmech".
(soup_uri_set_auth): Remove this too.
* tests/auth-test.c: Update to use the "authenticate" and
"reauthenticate" signals instead of encoding usernames and
passwords in the URIs. Add a few more test cases.
Diffstat (limited to 'libsoup/soup-auth.h')
-rw-r--r-- | libsoup/soup-auth.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libsoup/soup-auth.h b/libsoup/soup-auth.h index 2e936a3a..c385dba5 100644 --- a/libsoup/soup-auth.h +++ b/libsoup/soup-auth.h @@ -36,7 +36,6 @@ typedef struct { void (*authenticate) (SoupAuth *auth, const char *username, const char *password); - gboolean (*invalidate) (SoupAuth *auth); gboolean (*is_authenticated) (SoupAuth *auth); char * (*get_authorization) (SoupAuth *auth, @@ -46,8 +45,7 @@ typedef struct { GType soup_auth_get_type (void); -SoupAuth *soup_auth_new_from_header_list (const GSList *header, - const char *pref); +SoupAuth *soup_auth_new_from_header_list (const GSList *header); const char *soup_auth_get_scheme_name (SoupAuth *auth); const char *soup_auth_get_realm (SoupAuth *auth); @@ -55,7 +53,6 @@ const char *soup_auth_get_realm (SoupAuth *auth); void soup_auth_authenticate (SoupAuth *auth, const char *username, const char *password); -gboolean soup_auth_invalidate (SoupAuth *auth); gboolean soup_auth_is_authenticated (SoupAuth *auth); char *soup_auth_get_authorization (SoupAuth *auth, |